It is not solely caused by genetics, but it has a genetic factor. If anyone in the family had it, you may be more prone to it. People with allergies, eczema, and asthma are also at a risk of developing keratosis pilaris.