It was between keeping Varane, a much younger player, or keeping Pepe, who was already pretty old back in 2017, so it was logical.
In hindsight though, knowing now, how well he would age, wouldn't have minded seeing him at the club for several more seasons.