When I was young, around 10, I was bored. We had one shitty desktop and no internet 99% of the time (we had dial up but only 1 landline, and my mom used the phone alot). We were also homeschooled, and the software teaching us was on that computer. I found the software documentation which was in HTML, and used that to make my own “website”.
Even before then though I had a draw to tinkering with computers. After a bit I convinced my mom to get me intro to C++ by Bjarne Stroustrup, and messed with that for a good year or so. Then we upgraded to DSL when I was around 13 and I got into Roblox and learned Lua, then other languages.