In the late 90s very few games had DRM. Most would run right from the CD. Run the install wizard and the game would just load. A few games would have a launcher built into the CD, but those were still the minority.
Around the time of the dot com bubble, there were small no name stores that were experimenting with a game store. This includes several free and some paid stores that exclusively had flash game. Little history for those too young.
The dotcom bubble crashed in 2002 and with it 99% of the small companies went under. Valve launched steam in 2003 after see what those stores did. Those of us alive and gaming in 2003 were not fans of how things were shifting towards "everything on steam". To their credit they did it better than the smaller ones during the dot com. But many people still preferred the pre 2000 DRM rarity.
Steam became more popular and overtime all games required DRM. Which is why GOG is so popular.