When you run psql command alone, you're actually running
psql --port=5432 --host=localhost --username=postgres --dbname=postgres
These are default values that depend on your environment variables and local config.
If you have multiple PostgreSQL versions installed and launched, they are likely just running on different ports. Regardless of how you launched them, you can search your processes and ports to see if it lists multiple versions and where they're listening:
ps auxwww | grep postgres
sudo lsof -i -P | grep LISTEN
Then just point psql to the other one
psql --port=5433 --host=localhost --username=postgres --dbname=postgres
Running psql -V:
-V
--version
Print the psql version and exit.
shows you the version of your psql tool that you probably installed with the new version of PostgreSQL, which you probably did without uninstalling/upgrading the old database, or even switching it off. So you're using the new tool bundled with the new db, but still connect to the old db where you run SELECT version();.