Keep hackers and malicious tools out
Disable Remote Access to Your Mac – macOS Hardening
When you connect your PC to the Internet, applications send and receive information over the network connection. Normally, you do not need to worry about this data exchange, as it is required for the correct functioning of some apps and system functions. However, you should be extra careful on public or unsecured networks.
One way to stay safe on public networks (e.g. Wi-Fi in hotels, airports, and restaurants) is to block incoming connections on your device. This prevents hackers and other malicious tools on the network from gaining access to your computer.
Conversely, blocking outgoing connections can help prevent your apps from connecting to an unsafe internet network. It is an effective way to prevent a suspicious app/malware from downloading additional malware or communicating with its server.