The primary cause of congenital glaucoma is abnormal development of the eye's drainage channels, specifically the trabecular meshwork and Schlemm's canal. This abnormality impedes the normal outflow of aqueous humor, leading to elevated intraocular pressure. Genetic factors play a significant role, and the condition can be either inherited or occur sporadically.