They asked different questions. Zechariah said, "How can I be sure of this?"
He wanted proof, he didn't believe the angel.
Mary asked, "How can this be?"
She believed the angel, but it didn't really make sense so she asked for clarification.
There's a difference, I think.