Currently I am using this to grant permissions:
grant select on all tables in schema public to ; alter default privileges in schema public
Found the answer. It is in this line in the documentation.
"You can change default privileges only for objects that will be created by yourself or by roles that you are a member of."
I was using alter default privileges from a different user than the one creating the tables.