Does this answer your question?
A hernia is when part of the intestine, or bowel, pushes down inside the scrotum from the abdomen. If a person has a hernia, this part of the bowel can become trapped inside the scrotum, causing serious problems. The physician checks for this by having the male cough while feeling inside the scrotal sac. Hernias may be felt as the person coughs and the bowel is pushed downwards. Hernias can be corrected with surgery.
From a medical website.