If you respond 2 to 1, you are guaranteeing at least 5 hearts.
That is the only major-suit response (other than jumps) that guarantees at least 5 cards. (For a review of this subject, click here.)
Responses on the 1-level guarantee only 4. When your response to partner's opening bid