Because those movies infamously underperformed, to the point that Sony rushed off to make a deal with Marvel to save their sinking Spider-Man film franchise. We're discussing how Sony got themselves into this mess. If Spider-Man had performed as well as Sony wanted, there would have been no deal with Marvel.
So yes, casting Stone as Gwen was a huge mistake.