They have been moving towards enterprise services since Carly. Mark Hurd bought EDS and Mercury specifically to strengthen HP's enterprise offerings. Mark buying Palm seemed really out of place at the time.
I am not so sure it was out of place. If you think of WebOS as a client to the enterprise software, it provides an interesting story. No need for Microsoft licenses and somewhat common (good enough for marketing) development set with the web people.