It depends on how you take your picture. If your using a phone, as you move the phone around or hold it in an odd angle, youll see the "controls" rotate even though the picture looks fine. Snap a pic, and the information about how the phone was being held is stored in the JPG file.
Therefore, it rotates.
Turn off your phones auto-rotation, and problem solved.