The true answer here is that people went where the games went. And those AAA distributors preferred a middleman doing everything for them in exchange for getting a cut. From there, AA and indies went to the middleman because they more or less had to to compete. Whether or not you consider market capture the whims of the consumer or a natural consequence of capitalism is a more philosophical question to ask.
On a more fundamental level, it seems like people will pick convenience over security and freedom every time the choice pops up. In the land of media, this comes down to choosing to put all your eggs in one basket in exchange for having less control over the products you bought. We've seen this across Netflix, Steam, and Spotify as the largest modern examples.