If you have a Game pass Ultimate subscription, you should be able to play Minecraft for free on the PC.
Actually, ignore this. You can't. It's the Xbox version that's on Game pass and not the PC version. So looks like you'll have to pay for it I'm afraid.