why are male genitals outside the body?
Because if they were in the inside, then they would not be able to sexually reproduct and could not have offspring.