This is because p + q = 1, and p represents the frequency of the dominant allele, while q represents the frequency of the recessive allele.