Before Davening, one must prepare themselves to stand in front of Hashem like a servant in front of the king. Preparing includes many things especially dressing properly. The way people dress when going to have a meeting with someone important is how they should dress by Davening.