There is a specific service called "Azure NAT Gateway"
All the outbound traffic of the VNet will be redirected to the PIP through the "Azure NAT Gateway".
Read the documentation for the details https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview