It doesn't fire people just for being gay. It fires employees who wantonly and publicly challenge or reject its teachings. The public act of contracting a so-called same-sex marriage is one instance of this.