Hi,
I am Sumit, an Independent Advisor and a 2-Year Windows Insider MVP here to help.
Did you buy Java edition or Store one?
If it was java version:
If you have recently purchased Minecraft, it is not free.
https://help.mojang.com/customer/en/portal/arti...
Is Minecraft for Windows 10 included with the purchase of Minecraft: Java Edition?
Players who have purchased Minecraft: Java Edition before October 19th, 2018 can get Minecraft for Windows 10 for free by visiting their Mojang account. Log into account.mojang.com, and under the “My Games” heading you will find a button to claim your gift code. If you purchased Minecraft: Java Edition after October 19th, 2018, the button will not be there, so if you’re unsure of when you purchased Minecraft: Java Edition, that’s a good way to check. Pressing the button will generate a token and send you to a Microsoft redemption page
Disclaimer:
This is a non-Microsoft website which would provide accurate and safe information. Watch out for ads on the site which are frequently classified as a PUP (Potentially Unwanted Products). There is no need to buy paid products to fix your computers as they do more harm than good sometimes. .