I don't think Whatsapp stores messages on their servers. They do only until they are delivered to all parties and delete after that. What will they even do with the messages if they stored them- they would be end to end encrypted and Whatsapp won't have the decryption keys.
Well, WhatsApp might be not doing this, but other messengers save history on the server. And by the way , how do you know what WhatsApp really does if it has closed source code?