Giving valuable stuff out for free is often unwise. It won't be valued and hence wasted and squandered. It would be hoarded and resold if seen as valuable, e.g. if the supply is limited.
There should be a cost, but it does not have to be monetary. A bureaucratic cost often works well enough: you don't pay for the stuff but you give identity in exchange, and are tracked to limit repeat orders. Or you can buy any amount of the stuff at the market price, but without all that.
> A bureaucratic cost often works well enough: you don't pay for the stuff but you give identity in exchange, and are tracked to limit repeat orders.
You're describing literally exactly how vaccines are distributed, surrounded by a lot of apologism for the arguments against the exact thing you described.