A NAT gateway is a managed service that lets private cloud servers reach the internet without being reachable from it. NAT stands for network address translation: the gateway swaps the private address of an outgoing request for its own public one, and routes the reply back to the right server.
It matters for cost as well as security. Providers commonly charge both for the time a gateway is running and for each gigabyte it processes, so a busy private network that sends a lot of traffic through one can see charges build up. Traffic to services that could be reached privately, such as a provider's own storage, may pass through it unnecessarily.
Pricing and behavior differ between providers and change over time, and a NAT gateway is not the only way to give servers outbound access. Its charges are also separate from the egress charges for the same data, so the two can add up.
To control the cost, check which traffic goes through it, use private connections to cloud services where they are available, and compare the current per-hour and per-gigabyte rates for your region.