TCP port 22 is the default port for SSH.
A port is a transport layer number used together with an IP address and a protocol such as TCP or UDP to direct traffic to the correct service on a host.
A server process binds a socket to a port and listens, while a client typically chooses an ephemeral source port for outbound connections.
The combination of source and destination IP addresses, source and destination ports, and the transport protocol uniquely identifies a flow so the operating system can keep many conversations separate.
Firewalls, NAT, and scanners talk about ports because the destination port is the stable rendezvous point that exposes a service to the network.
An SSH server binds to port 22 and waits in a listening state.
When you connect, your client opens a TCP session from an ephemeral source port to the server IP and destination port 22, completes the TCP handshake, and then starts the SSH protocol on top of that connection.
SSH negotiates encryption, authenticates the user or key, and then multiplexes one connection into channels for an interactive shell, single command execution, file transfer via SFTP, or port forwarding.
That is why scanning for 22 is a common way to find remote administration surfaces.
If you understand ports, you can see why moving SSH to a different port reduces noise but does not remove risk: the service is still reachable, just at a different rendezvous point.