It's not, but they always come with a command or an option or similar to switch versions. This bit is nothing to do with Moodle.
You need to switch PHP versions using a command, putting something in a .htaccess file or by whatever method your hosting company told you - or should have told you.