Very often in home and industrial automation you want to have a smart enough, local, gateway that can:
- speak multiple protocols as needed by the devices
- aggregate data, provide history of values from sensors & so on
- isolates the (limited) network stacks of local devices from the Internet - e.g. provides different timeouts and retransmission behavior
- terminates a VPN, often providing better security than exposing services directly on the Internet!