The Prophet ﷺ did something as it was allowed from the religious point of view but some people refrained from it. When the Prophet ﷺ heard of that, he, after glorifying and praising Allah, said, "Why do some people refrain from doing something which I do? By Allah, I know Allah more than they."
عَائِشَةُ رَضِيَ الله عنها صَنَعَ النَّبِيُّ ﷺ شَيْئًا تَرَخَّصَ وَتَنَزَّهَ عَنْهُ قَوْمٌ فَبَلَغَ ذَلِكَ النَّبِيَّ ﷺ فَحَمِدَ اللَّهَ ثُمَّ قَالَ مَا بَالُ أَقْوَامٍ يَتَنَزَّهُونَ عَنِ الشَّىْءِ أَصْنَعُهُ فَوَاللَّهِ إِنِّي أَعْلَمُهُمْ بِاللَّهِ وَأَشَدُّهُمْ لَهُ خَشْيَةً