Is it? The ultimate reason behind it might be religious, but it's not enshrining religion in law.
I would imagine that it's fine for a county to, say, ban non-halal meat (if they had the power to do so). But it wouldn't be fine to legally mandate daily prayers.