The last few big companies I worked for did this automatic chat deletion as a standard practice created by the authors. Microsoft even did this for email a long time ago when I was there. The lawyers tell them to do it as a defense mechanism. It's really common now.