Why might Google want to buy part of HTC?

Google struggled to integrate Motorola Mobility - why it would want to repeat the experience?

Source