At birth, the foreskin adheres to the glans. Gradually, over time, the adhesions loosen so that the foreskin usually becomes fully retractable after puberty. Sometimes, small adhesions persist and can be detached by the use of baby oil (for example) and careful manipulation -- or, in your case, by surgery. Ask your doctor for a more professional explanation.
__________________ I hear the beat of a different drummer