Gateway lora server vs cloud lora server?

I have started to collect info about Lora server and found that in example RAK gateways have build in Lora server. I can not find any information about what is the difference to have build in server in gateway and cloud server. The main difference you have many server if you have many gateways but there should be some API to collect all data from all the gateways. Is there anything else?