Mary's reply was coming from a heart of faith, not a heart of unbelief like Zechariah. God is concerned with our heart. Questions to God aren't wrong, because they help us to grow and help us to understand. When we question, we then search for answers. It's much better to realize we have a question and look for a solution than to sit by and be content in our ignorance.