Flattening them helps them cook more uniformly and make a prettier cookie. If they are not flattened they turn out puffy in the middle and don't look as nice when glazed.