The purpose of testes being situated outside the abdominal cavity in the scrotum is -
To maintain the scrotal temperature lower than the internal body temperature
The testes in humans are situated outside the abdominal cavity, inside the scrotum, in order to maintain scrotal temperature lower than the internal body temperature . This is because sperm development is optimised at this lower scrotal temperature and affected negatively at normal body temperature.