Hi!
Your browser is probably using a different user account. You can switch browsers or add the account linked to Minecraft.
To add another account, go to https://account.microsoft.com/ > If the login page appears, click Sign-in with a different account. If it appears on your other account's screen, click the profile icon in the upper right corner > Sign-in with a different account.