The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 13.1. code example
Example: database files are incompatible with server
brew postgresql-upgrade-database
brew postgresql-upgrade-database