With Alec, it's the rage talking. It's less homophobia, and more of him wanting to push all the buttons he can. He'll most likely issue a profuse apology once he cools off enough.