With one developing at that young age, you are more than likely looking at a birth defect/congenital weakness with a heredity component. There will be a risk of developing an inguinal hernia on the other side, too, so the vet should do a repair on both sides.
__________________ Life is merrier with a Yorkshire Terrier! Jezebel  & Chuy  ... RIP: Barkley  Loosie  & Sassy  |