Very strange to wear a hat in her own "home", even if it is a palace, when welcoming guests. And, of course, the hat should have been removed during the luncheon. Those are general guidelines, but then, Maxima isn't guided by those kind of conventions.