James was like a bully towards snape right so what do you think made lily like James?

Considering my first question was a total flop I thought I'll ask something good. And seriously tho I'm not saying james is bad but he was mean to snape right and in the third book the teachers who met at hogsmade also say that siruis and James was trouble makers.i mean is it just that he is her type? So I was wondering if u could say some reasons why she likes him. (I am not saying they aren't a good couple)