You have a clean (new) install of macOS 12.3.1. It doesn't have python.
https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes
Search the interweb to find why 'python' doesn't usually resolve automatically to python3, and the various ways you can install multiple versions of python on your machine. I use pyenv.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: