The rules for hand luggage size exist so that the bag will fit in the overhead storage in the airplane. If your hand luggage is larger than the airline allows you will not be able to take it on board and will need to pay to check in your bag.
We recommend that you always check which rules for hand luggage size apply for your airline. Find contact information here.