Under terms of the NFL Collective Bargaining Agreement, a team losing more or better compensatory free agents than it acquires in a year is eligible to receive compensatory draft picks.
The number of picks a team receives equals the net loss of compensatory free agents up to a maximum of four.
This is from an NFL.com article from last year.
http://www.nfl.com/news/story/8314832