It's part of the Rooney Rule. Here is the specific paragraph:
In November 2020, team owners approved a proposal rewarding teams who developed minority talent that went on to become GMs or head coaches across the league. If a team lost a minority executive or coach to another team, that team would receive a third-round compensatory pick for two years. If a team lost both a coach and personnel member, it would receive a third-round compensatory pick for three years.
[
operations.nfl.com]