You also had someone providing for you and covering all of your costs. Once you leave the carefree comforts of childhood and join the rat race the rules change.
Ones motivation need not change. “Do what you love and the money will follow” is not universally true, but it is pretty damn true for learning and making software.
I love art and music. I'm pretty skilled in a variety of those fields. The reason I don't do them is because programming pays extraordinarily better and can let me have a more relaxed and enjoyable lifestyle as opposed to living in garbage tier slums.
A way to make a living doing what you love. I loved programming as a child/teenager. I wasn't paid then.