We tend to hate a subject when we do not understand its usefulness, the logic underlying it, or both.
I'm sorry to say that I never had a good Maths teacher, so I just scraped through and was greatly relieved when I finished school, thinking that was the end of my suffering.
When I entered the School of Psychology, I discovered that Statistics was compulsory, and that I had to deal with it without a Maths subject to help, as it was assumed that we had learnt enough Maths at school.
I nearly dropped out. My husband, an engineer and great mathematician, started coaching me from square one so that I could move on. This time I had found a really good teacher. I stopped hating Maths the minute I began to understand what I was doing and why.
I cannot say that I love it as I love the humanities... too late for that. But at least I accept Maths is important and useful, and when my own child started with the "I hate Maths" singsong, I hastened to get him the best extra help available (he wouldn't sit and work with his father.) That child is now an electronic engineer.