What's wrong with my XBOX controller?

I have an XBOX 360 Halo 4 UNSC Special Edition Wireless Controller that I absolutely love. It works great normally, however, every once it a while it randomly and suddenly goes into a fit… And all buttons/knobs go haywire. I can't control anything. It acts like all buttons and knobs are pressed at once. In Minecraft, for example, the camera will shift all the way up and my character will start digging while walking in a circle. The only way I can fix it is to remove and reseat the battery. No buttons will actually work when it does this, not even the home button.

Fixing it would be nice… But I'm more curious as to what causes the problem. I know it is not related to the sync cable or battery… And info/advice is appreciated.

Sometimes, that happens when I play San Andreas on my tablet.
Just to me, I turn it off and back on.