gay or homophobic

I know there’s a lot of edge case characters here but how is Emma a villain??