Hair bumps

I usually get hair bumps when I shave but sometimes I do even when I don’t. Does anyone have any clue as to why that may be the case?