In my teen years I spent most of my time writing, reading, or walking wherever. Again, I had a few friends, but I was picky and apart from that didn't care to "maintain" the friendships. When I started using the Internet more frequently, I found more passive friendships online that came and went and this was a much better solution for me. It meant I could connect when I wanted to, and instantly end the connection when I wanted to be alone, without much risk.
I probably sound a little more pathological than you, but my point is that some people just are a certain way. Apart from that there are external reasons why kids prefer the Internet to in-person interaction. The Internet as a solution came about for a reason. The world is so populated now that when one walks down the street, your neighbors are unkind or elusive because people cannot keep up with so many relationships at once. Trains are packed, everyone's chattering, everyone's rushing, there are people everywhere but no one is communicating-- there's no time or energy to connect with people. Some guy on the train is crying, but no one is going to comfort him because everyone has so much shit going on. The Internet, in one sense, is a way to reconnect with one's neighbors intimately while keeping a sane distance. If a guy on reddit is telling me he's crying, I instantly attempt to comfort him.
It's a weird thing, for sure. But, personally, I don't see an easy way around it in the short-term.
But today, when I can barely get shit done with all the distractions at my fingertips, I wonder if I could learn the basics before gravitating towards something passive.
It forced me out of necessity to give time to content I never would have bothered with otherwise.
Boredom is so healthy.
Among those: the media, fiction, or interactions that were meaningful to me held more space in my mind. They weren't competing against a sea of trash and new stimulus.
----
Also I did a ton of engineering and robotics extra curricular stuff through the years. Then one year we got broadband and I got Lego Mindstorms. I took it out of the box once. I still feel bad about that gift.
Or you might have found a friend and started a social circle based on common interests. Now you never have to, you get various approximations of that. You can hop onto an MMO and have an approximation of a social circle. You can code until a manager says "good job" and have an approximation of social approval. Hell you can watch porn and get an approximation of sex. You can watch ASMR videos and get an approximation of affection (don't tell me a video of a cute girl with audio that sounds like she's whispering in your ear isn't meant to be an approximation of affection).
It's good to have tech and the things it brings us, but on the other hand they're clearly sucking people into a passive life where they interact with the actual world as little as possible. I've looked back on how socially retarded I am because I ran away from the world using these tools, and I don't like it. And it's only a personal failure to a certain extent. We all know, clear as a bright spring day, that a lot of apps and services are build deliberately to keep you there as long as possible as often as possible.
When people say they wouldn't have it any other way, I'm not sure it's for any reason but they either don't know or can't handle any other way.
I live in both, I can function decently in both, and I still prefer the passive tech life. Pretty sure without tech, I'd still prefer to be distant/alone most of the time, with only occasional contact with other human beings
Before I had regular access to technology I spent most of my after-school and recess time staring off into space, pacing around constructing imaginary worlds, and reading YA fiction. I had no interest in my peers, and no idea how to connect with them, years before I ever touched a computer. When I finally did get into the internet, and programming, it was manna from heaven. Now I get to be a productive member of society, staring off into space at my desk and constructing imaginary worlds in the form of software systems for important business purposes. If it weren't for that, I might have wasted away, disintegrated, completely detached from the normal human world.
I dunno. Just because a child has no social life and a lot of screen time, doesn't mean the causality works as you propose. Some of us have a tighter grip on the world of things than the world of people. (It's definitely become more balanced for me, with time).