His contract with Nice had expired, so he was a free agent. He only signed a two-year deal, so it was a low risk transfer for both parties. I guess he could've joined a title rival like Marseille or Lyon, so from that perspective it was a sensible thing for PSG to sign him for themselves.