A hydrocele is a fluid-filled sac surrounding a testicle that causes swelling in the scrotum. While it is common in newborns, it can also affect older boys and adult men. Hydroceles are usually painless but can cause discomfort due to the swelling. Treatment may be required if the hydrocele does not resolve on its own or if it causes significant discomfort.