On linux servers there are 2 php executables. The web based environment check shows the php for the web. For the cron job, it requires the same php version of php-cli (php for the command line).
Do you have Terminal access via cPanel or other Panel?
If so, click it and at the first prompt at the CLI, issue the following command:
which php
That will show which php-cli your system finds path.
use the path you see ... might be /usr/local/bin/php to see what version which command found first:
/path/to/php -v
If it is the correct path to 8.1, you will see the version - 8.1. If it is not the correct path, you will see a version of php lower than 8.1.
If using cPanel, one usually has a multiphp tool ... set the
domain's php to 8.1 there. Also check cPanel's setting for cron job.
If the above is too confusing and/or you don't have Terminal icon, contact your hosting provider, for how to setup your cron job to point to the php-cli version 8.1 of PHP.
'SoS', Ken