Why do people commit mathematical mistakes? What are the mechanisms behind them?

I’m mostly asking this open question to those among us who are well-versed in developmental psychology (I’m mostly thinking of children) . Although, failing the actual scientific research on the topic, I guess some testable hypotheses would be great too.