Postgres/Postgis packages on linux are not often the latest versions. Installing from source is not too difficult. This is also an exercise to see if it's possible to run the database on a pi. Compiling may take a while on more lower spec machines.
Download source
https://ftp.postgresql.org/pub/source/v15.1/postgresql-15.1.tar.gz
Unzip