It's because both competitors are making the same calculation where a loss in market share is worth less than the per unit profit increase.
This isn't really a matter of competition, it's that people's willingness to pay (in nominal value) is much higher.
If people's willingness to pay were less, then increasing prices would loose a greater portion of the market.