Two firms raced to seize an opportunity no one saw coming.