Exif data is stored in the image when a picture is taken. Cameras and phones store the orientation as well as other data in the picture. In the original image the exif data was causing the image to be rotated.
Oh, this? I'm just having some fun with the GIMP.