There are medical reasons for the removal of foreskins such as phimosis [1]. Inasmuch as I would agree that religious justifications for circumcision are the ramblings of a cargo cult, circumcision itself was and is (for now at least) not without value.
[1] https://en.m.wikipedia.org/wiki/Phimosis