It means exactly what it says. If you have a hat, while the other members of the same community have at least 20 (different types of) hats, you'll get this hat.
Or, if you understand SQL:
USE <the database corresponding to your SE community>;
(SELECT COUNT(*DISTINCT hatname) FROM awardedhats GROUP BY hatname) >= 20 AND
(SELECT COUNT(*) FROM awardedhats WHERE userid = <your user ID>) >= 1
Here, awardedhats
is a table with two columns; the user ID and the name of the hat.