That was to diffuse the friction at all the places that made masks mandatory when many MAGA folks werent wearing masks as a political statement. Trump was essentially saying its okay to wear one if you have no choice (like buying food), "not a hill you want to die on".