Well I'm not so sure it's used for this any more as I think it's a lot thinner, but in the past when it was thicker I'm pretty sure body hair was like fur. Basically used to aid regulating the body temperature and to keep us warm.
If you want a more detailed explanation I'd pop this question in to Science..... They'd definately know all the ins and outs in there.