The original reasoning can be found in medical texts from the mid to late 19th century when it was first discussed. My recollection is not strong enough to repeat it with confidence but it was to the effect of: the removal of the foreskin should restrict the ease of movement* and therefore restrict the ease of “self-abuse” as it was termed then.
* the foreskin functions as a sleeve which eases movement and reduces friction during sexual acts.