My iphone 4s's sound settings changed by themselves
Please verify the position of the upper left switch on the housing. Slide it down so that you can see the orange background. This setting mutes your iPhone. You will then hear no system sounds, only vibration.

I assume you always had that switch in that position and it accidently changed its postion to unmute.