I first learned to program when I was 11 or 12 years old because I was playing MUDs and wanted one of my own so I could implement features and ideas I had. Best of luck. :)
I think I can also attribute my initial interest in programming to MUDs. Funny how, all these years later, they still give me satisfaction albeit through a much different tech stack. :)