Most dermatologists assume that moles are genetic because generations of families tend to have similar numbers of moles, however, this is not currently well-understood. Moles can develop due to sun exposure, as you age, or be present at birth.