The tale of the two separate versions of Minecraft on PC is an odd one. A while back, if you had purchased the Java version of Minecraft prior to October 19, 2018, you were able to claim a free copy of the non-Java built Bedrock Edition for free. All you had to do was tie your existing Mojang account to your Microsoft account.
If you didn't own the game prior to that 2018 cutoff date, you could still get Minecraft, but you apparently...