This was a covenant between god and abraham. Abraham was willing to sacrifice his first-born son but fortunately was told by god that a circumcision
Circumcision became part of the jewish religion from then on. Jews believe circumcision is the "will of god". Thus jews and muslims practice circumcision.