Sort:  

but a gif doesn't have sound. If it had sound it would be a video.

yeah, is because the video is converted to gif to make it less heavy and be able to share it on social networks with audio, the video that is actually a gif with sound

you are right