Neonatal glaucoma is often caused by improper development of the eye's drainage system before birth. This condition can be hereditary, meaning it runs in families, or it can occur sporadically without any clear genetic predisposition. In some cases, it can be associated with other congenital anomalies or syndromes.