I learned it because it's fun :-)
Creating powerful things like programs, and solving challenges, are cool ways to spend time.
But I'm not very confident about it. I'm very skeptical of the "what motivates you" question. You don't need reasons to like stuff. And having a good story about why you like stuff seems to me to be a poor predictor of actually enjoying other things that match the story.
I think I like creating stuff, but I'm not into art at all. I think I like challenges, but not like, sport, or chess. I like tinkering or debugging, but not electronics...
I prefer to trust actions. If you do something a lot without being pushed to, I'll assume you really do like it, for whatever reason.
Maybe that skepticism is from being rejected for opportunities for not having a clear motivation story. It's so easy to invent a story that sounds good, don't know why I didn't...