Both in the same boat. Both treated alike; both placed in the same conditions. The reference is to the boat launched when a ship is wrecked. To be represented in a boat is the ordinary symbol of apotheosis. Many sovereigns are so represented on coins.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894