If as a board you unduly punish executives when bets they make don't pan out, you risk causing a culture of fear that prevents innovation and big bets.
Obviously there's a limit, and the reasoning is important behind the bets.
That being said it's not like all of the tech ceos were perfectly competent - that's not what I'm saying. But the knee-jerk "well, fire them too" reaction from the internet is mostly an emotional response.