Why not?You're kinda stretching pretty long there bud. Not covering a medication on religious grounds doesn't mean you can be racist on religious grounds.
There's a law that said they had to provide birth control - SCOTUS said they could opt out of it based on religion.
There's a law that says people have to serve black people. If your religion said you didn't, why couldn't you similarly opt out?