They got fired for expressing those beliefs at work, on company time while disrupting the work of that company and then refusing to leave when told to do so.