When you initialise some version of the data directory to another version of server than it could not connect to the server.
pg_upgrade (formerly called pg_migrator) upgrades the data files to the latest versions used in the system for compatibility.
If you try to update the version of the data directory, then you can run your data directory on the present server, and you can also retain the data once you upgrade the data directory into current running versions.