The deal is good for the player. It doesn't make it necessarily bad for the team.
Every contract weighs the upside vs the downside. Eliminating the upside with an opt out makes the contract worse for the team.
It doesn’t take a sales engineer to understand this basic concept lol.