Why do I have to buy Minecraft again?

Ch
7

Namely me, when I switched to a Microsoft account in Minecraft, it said on the right that I have to buy Minecraft again. But why? I don't mean on a website that you have to buy Minecraft again if you switched to a Microsoft account. Below this text is the message that was displayed to me. Can you tell me the mistake?

Why do I have to buy Minecraft again
Ni

You probably only have the "Windows 10 Edition" and not the Java version.

Ch

No, I have the Java Edition.

Ni
-5

Yeah obviously not?!

Gu
1

Same happened to me. I HAVE JAVA

Gu

same happens here dont know the cause

Gu

What is the answer to this question? I also have purchased the game and it is telling me that I need to unlock the full game. The only tip I have been able to find is to restore my license. I tried this and it solved nothing.

Gu

same and i have java