When a church asks for a tax exemption, does the government not have the authority to ask if they are religious?
The government did not punish these people for their beliefs. They "punished" them for trying to push their beliefs on others.
Churches really don't need to ask for tax exemptions. The Constitution provides for "free exercise". That means "no taxes". Your question is meaningless.