They probably didn't have much choice but to buy them.
Patents are a big part of the war chest of established players to keep out upstarts. They needed a big portfolio to protect Android while they were growing the market.
(Look at the court battles between Samsung and Apple...)
Cheers,
Scott.