it's like that just because one of the usages of "que" is to say sentences like that.
If you say "tener un gran dia", you're saying "to have a good day", but in spanish you have top conjugate the verb "have" according to the person to whom you're talking to. But for one or another reason, "qué" is added before "tengas" for making that phrase.