Here's why:
* Declarative sentences make a statement. They state a fact or opinion. This sentence is asking a question.
* Interrogative sentences ask a question. This sentence ends with a question mark, which is a key characteristic of interrogative sentences.
Therefore, the sentence is an interrogative sentence, not a declarative sentence.