I don't understand the "how" part, but I know it's true.
On a side note though, lice do not like it.
Long time ago, in the Marines, a guys kids got lice...He bought all kinds of expensive soaps and crap, nothing worked.........Gunny "T" piped up "Just wash their f''n hair with diesel, shit...