Here's why:
* Exclamatory sentences express strong emotion, often using exclamation points.
* Declarative sentences make statements and end with a period.
While "Ouch" itself might be considered an interjection, the full sentence "Ouch, that hurts!" is conveying a strong emotional response to pain, making it an exclamation.