Offering Windows Phone 8 devices is an obvious play for a hardware vendor that's aligned with Microsoft.
With WP8, HP does what it's comfortable doing - hardware - and Microsoft does the software stack.
Whether HP (and Microsoft, for that matter) can gain traction against Android and iOS remains to be determined.