Hydrocele occurs when there is an accumulation of fluid in the sac surrounding the testicles, known as the tunica vagina