It is usually inherited,but may be exacerbated by excessive exposure to water,detergents and hrsh chemicals.
Wear rubber gloves whenever you have to put your hands in water or handle chemicals or detergents,keep your nails short,you can apply a protective coat of nail polish.regular application of hand cream may help.