Twitter and other social media platforms do this mostly to enhance user experience. The video compression levels Twitter implements are severe. That's why a great video quality on your device usually ends up/appears unacceptable once uploaded to Twitter.
Twitter destroys your video's pixel details. Once I checked my video, I noticed the quality had dropped tremendously… the video is an MP4 download, so I have no idea what the problem could be.'