Girls love assholes because they think they are the best out of everyone and that's what makes them attractive and at the same time give them shit personality, because the female always wants to mate with the best male "survival of the fittest" and to be the best one you at least need to believe that you are the best one.

So the higher your ego the more attractive you are