I'm genuinely curious

If males truly do sell, why do companies keep on making females on and on and on? Do they simply sell but just not as much as females? Then they treat the male characters like absolute shit, why? Shouldn't they try and sell their product? What's the point of making a product you won't even try selling well? Is it more beneficial for them to do that rather than trying?

And what's with many people in the community having a hatred towards male characters? I don't understand it