What is it with WD-40?

Rainy Day, my uncle used to spray it on his sore arm and knee joints. Said it helped them move better.