HP already had plenty of experience of building handheld computers at that point. Their own and from Compaq and Digital.
They needed an App store to entice developers and bring about killer apps. There was no logical reason to buy an HP Palm, it was too expensive even.