How is a question a question?

When it is neither a command or a statement, rather a request for an answer.
the sentence is a question when you put a ? and not a . or a ! .