'We often say that Mohammad was a pedophile, but wasn't the virgin Mary around 12 when she was impregnated'
So you are saying the Holy Spirit was a pedophile?
No.
At that time in history, childhood was very short because the average lifespan was very short.