Smoking is another reason why hair becomes gray. According to studies, people who smoke tend to grow gray hair earlier than non smokers. So quit the stub if you want to avoid gray hair.
Some other medical conditions for premature graying are reduced bone mineral density and a few skin conditions like vitiligo, albinism, etc.