The exact cause of congenital hemangiomas remains unclear. However, they are believed to arise from errors in angiogenesis, the process by which new blood vessels form from pre-existing vessels. Genetic factors may also play a role, although no specific genes have been definitively linked to the condition.