In most cases the underdog is running on investment funds, and has handed over a significant amount of the company control to investors. When a buy is proposed, those investors have to weigh the really quick (probably really large) profit of selling versus playing the long game fighting an uphill battle against the giant.
This is how promising companies are swallowed by the market leaders.