Neymar left Barcelona in 2017 for an incredible price that still makes him the most expensive player in history today at €222m. PSG went all the way to activate his release clause to bring him to Paris. This is not even a quarter of what Barcelona placed on youngsters like Ansu Fati and Pedri.
More than the outrageous price, there is more to it. After the departure of Lionel Messi who was valued at €700m and eventually left for free at the end of his contract. Barcelona needs to build for the future and assure youngsters they are valued, this is the reason those types of contract were given to youngsters instead of players like Pique, Depay or Aguero.
Real Madrid did the same with their elite striker Karim Benzema who was valued at €1b just to wade off interest from suitors. This is because in Spain, workers are allowed to leave their present work and pursue new dispensation freely and the soccer world was no exception with outrageous wages.
If a suitable offer occurs the player is allowed to go and the club can't stop them. This is another reason why an outrageous release clause is slammed on the players to make them committed and seen as a valued entity in the Club.