Same thing happened with me back in HS. I sucked at math, yet parents were both accountants. Then it just happened, I just called it an epiphany where every math equation looked easy. Add to the mystery was that the HS bullies who beat up other kids for their lunch money were math geniuses..
It was an almost orgasmic moment for me, I’ll never forget it...and that was back in the early ‘60’s.