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 will be gone in a day or so.......he did, and it was so......Lice gone.
Long story short, 30 years later my kids got lice from school....... and yep you guessed it.
I washed their hair with diesel, and BAM, no more lice.
Our friends called me everything but white, lectured me on "safety' and gave me a world of shit, and "I can't believe it" BS.............TILL she picked it up from her kids.............After about a grand spent on soaps and lotions, and voodoo, magic combs....
.30 cents worth of diesel solved all their problems ($9.00 in todays prices

)
Oh what fun it was to wash her hair with diesel from my truck........Priceless I say