Why is the scrotum located outside the body?