Let's say police claims you did something with only the chat log as an evidence and they run the chat software. Then they could very well have just faked it, because they have a high incentive to do so.
If the messages were on a third party platform you would at least have a neutral third party involved.