Online gaming offers a few benefits that single-player titles simply cannot match, and some of them are more practical than you might expect.
Games are often the first place people encounter programming, level design, and server administration. Plenty of developers trace their interest back to modding or building in a multiplayer game, and that curiosity can turn into a well-paid career. The esports and streaming scenes have also created legitimate professional routes that did not exist a decade ago.
The other obvious gain is people. Multiplayer games put you in contact with players from all over the world, and long-running guilds and clans frequently turn into genuine friendships. For anyone who finds face-to-face socialising difficult, that low-pressure environment can be a real advantage.
Balance matters. Online play can be absorbing, and it is worth setting limits, protecting your account details, and remembering that the person on the other end of a rude message is a stranger you owe nothing to.