Market fit should be worked out ahead of the team by the cofounders. The great team will contribute to it and over time everything evolves. Should the market shift fruit when you have the team, team transparency will help everyone steer the ship in a different direction. Otherwise the company will run out of cash chasing the founders fixed mindset.
It was a great product, delivered on time. It fulfilled a genuine need and it did it better than anything the competition had to offer. But the market wasn't there to sustain the company, and there was no reasonable way to know that far enough in advance to do anything difference.
This is the essence of luck. People hate that, but it's the truth.
So basically to your point. Market fit is pivotal to the health of a startup.