Here’s why some people are more likely to have them than others.