The club acquiring the player does not have to pay any compensation for their release due to having nothing left to pay on their contract, hence, the term free transfer.
Another type of free transfer is when a player is transferred from one club to another for no price, sometimes a transfer for a nominal fee is credited as a free transfer.