That depends on whether you're talking about when I first started seriously writing, or what inspired me to write the series I'm writing now. I get the feeling you're talking about the former rather than the latter. It's actually a little bit of a heavy story, but I do feel it's worth sharing.
So, it starts on a slightly more positive note. It was in a college level English class. Up until this point, writing had been a very weak subject for me. But, my instructor for this college level class finally gave me the advice every serious writer needs to hear before they will be any good as a writer at all, and I can't believe nobody had ever put it to me like this before that day. It's such a simple piece of advice, but it seems like everyone takes it for granted and the people who really need to hear it never do.
His advice was that a good writer does not just sit down and write an excellent piece of writing. A good writer writes a rough draft, and then they edit it, and then they get someone to read over it and critique it, and then they edit it again, and then they repeat the whole process again, and then they keep editing until they finally settle on a good presentable piece of writing. Following this advice, I wound up managing to write something good for the first time in my life, and it finally made writing a little bit fun.
That's only the thing that got me primed to start writing though. The thing that REALLY got me invested in it is the part that gets a bit heavy. You see, before I had even taken the class I just mentioned, I lost my mother to an illness. It was actually pretty shortly before that class. Eventually, I managed to get into an ultra-competitive medical course in my school, and the fact I hadn't worked through my emotions over losing my mother yet started catching up with me as the stress of this high difficulty course started piling up and triggering the things I'd been repressing. So, I needed to go seek therapy.
While I was working with my therapist, they suggested I start keeping a diary in the form of letters to my deceased mother. This wound up being very theraputic, and it also got me behind a word document writing a lot more often. This triggered something in me that found writing very liberating and an excellent stress relief, and I started writing other things aside from just those letters to my mom. Eventually, I started writing creatively, and started on my first failed manuscript for a novel.
Over the years after that, I kept writing several more things and getting practice as writing was just something I enjoyed for stress relief, and all the while I continued to hone the craft. Eventually, 8 years later, I got an inspiration for the series I am writing now and posting to Scribble Hub.