I don't think carpel tunnel syndrome is necessarily "genetic" but I do feel it's "congenital", i.e. you're born with it, bit like having bunions on your feet! No one in the family has ever had them but there you are, the first one!
I can remember even as a young kiddy having problems with my wrists and hating it if anyone grabbed me by the wrists when play fighting.
When I was 37 I had them fixed and they've been really good ever since. I'm now 60! The only thing I do is to wear wrist supports if I'm going to do anything a bit strenuous.
Please don't worry about it too much at your young age. If you have continuing problems with your wrists as you get older, there is always the option of surgery, it doesn't hurt a bit. Obviously it will take a few weeks for everything to settle down and after that you'll be totally fine.