Congenital glaucoma is hereditary and occurs in children who are born with defects in the eye fluid drainage system.