This code is as old as 2006 (commit id 2ef0bfe6cb8eb9d2cf117ca654bbbe0d17d0a784), where Dave added "Add support for PostgreSQL 8.2's CONNECT privilege on databases, and USAGE on sequences".
Pretty sure he meant SEQUENCE instead of TABLE in the else part :)