Hello and welcome to healthcare forum.
There are mainly two diagnosis for your child's condition. One is congenital hernia
and another is congenital hydrocele
At age of 3 years, both the conditions require surgery as there is no chances of spontaneous resolution. And the surgical procedure required is not big one.
So, dont afraid and go for surgery.
Best of luck.