The government does not need the census to tell it that 50% of the population is of a particular religion, polling like that routinely happens, the census is about voter districts and how many representatives each state gets to elect, the same is true in other democracies as well.
I can think of at least of one European country that does not collect religious, racial and ethnic data during their census. They collect socioeconomic and another but not these. Germany does not do a census at all.