Keratosis pilaris occurs when the human body produces excess keratin, a natural protein in the skin. The excess keratin surrounds and entraps the hair follicles in the pore. This causes the formation of hard plugs process known as hyperkeratinization.