Anyone who works in games development or publishing can tell you that the success of any given game is largely down to luck.
It’s perfectly possible for a dev to make all the right decisions and still lose, and in fact that’s what happens the majority of the time.
Yes Hollow Knight is a great game, but I guarantee there are dozens - if not hundreds - of games that are just as good but only sold a handful of copies and are doomed to languish in obscurity in the dusty corners of Steam.