The census form in the UK requires disclosure of religion and ethnicity. It would be relatively easy to merge census data with ID.
I might trust this government not to do that, but I don't trust a future government (because I don't know who that will be).