Why do user’s sent messages appear on the right?

I noticed that in many websites/apps like Messenger, WhatsApp, sending SMS on iPhones, Google Hangouts, etc. The user's sent messages appear on the right side.

I'm wondering why not place it one below the other just like Slack?

Is there any specific reason why do they follow this pattern?

For reference:

enter image description here