That’s because you took the pictures on your phone. And since phone images are taller than they are wide, the image is sideways.
If you take a picture on your tablet, then the image won’t be sideways. (At least in landscape mode, not sure ‘bout portrait)