Why was AIG bailed out and not Lehman?

Why was AIG bailed out and not Lehman?

At its peak, AIG had a market capitalization four times the size of Lehman at the latter’s highest. However, AIG was bailed out not purely because of its size, according to Antoncic. Sep 28, 2018

See also  Is Prudential a pyramid scheme?