مجموعاتٌ ضِمْنَ Teams المجانيِّ للاهتماماتِ المُشتركةِ والتَّعاونِ والتَّواصلِ
Are you sure on the Xbox Store, Microsoft Store and on your user account you are logged in with the same account?
I would first of all sign out from Microsoft Store and Xbox account and sign in again.
Then reinstall Minecraft as well.
Please keep me posted.