A lot don't(see MGM), that's why a lot have merged in to bigger more powerful studios that can sustain a hit if a movie doesn't live up to it's projections, like others have said there are other considerations that come into play when green lighting a sequel
Additionally the studio doesn't operate in vacuum with only one movie, it's not a all or nothing proposition, money made on one movie will help the studio when another isn't as successful as hoped.
And a lot of studios do survive.
The thing is, unless you are privy to information not available on the internet, information that is usually reserved to the finance department/board room of a major studio, you just don't know. Just like the rest of us. You're taking vague (and likely wrong) information and trying to pass judgement on a pair of movies you don't like. Which you are very much entitled to do. But you completely ignore people who are trying to have a conversation with you and pointing to the flaws in your logic. Which, again, you are very much entitled to do. But what you're doing is obviously not coming from an educated point-of-view.
Whatever happened to Roberto Orci directing Star Trek 3 had nothing to do with the performance of Star Trek Into Darkness. Paramount was happy enough with the course the franchise was on to originally name Orci director/writer of Star Trek 3.
The proof is in the pudding as far as the performance of Star Trek Into Darkness goes. We are getting Star Trek 3.