One of the main causes of Androgenetic alopecia is hereditary but it is not the only cause. You can also be a victim of androgenetic alopecia because of a combination of genetics, hormone levels, and natural ageing process.
Androgenetic alopecia is attributed to AR gene in X chromosome but it is not the only gene that will determine male pattern baldness. There are 63 more genes that can play the role in you loosing hair. Other factors that can cause androgenetic alopecia include heart diseases, hypertension, obesity, PCOS, and insulin resistance.