The main functional reason is we need to be able to grip things with our hands (and feet, which are also hairless), and hair would interfere with that. Physiologically, the epidermis in these parts of the body is very thick and highly keratinized, and when combined with the thick underlaying layer of dermis, this results in skin that does not support the growth and maturation of hair follicles.