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