Even though they are not meant to be answered, they still take the grammatical form of a question, hence the question mark.