The establishment clause says the government may not interfere with the establishment of religion. Forcing a religious institution to accept something against its doctrine would be doing just that.
Religious institutions do get special treatment, if they didn't, they would be taxed.