iPhone playing music when I put it down

I am having a weird issue, where when I put my iPhone down to a table, it starts playing music, even though I have paused it prior to putting it down. This issue seems to only occur when my headphones (the ear pods that came with the iPhone 5) are connected to the handset. There also seems to be a slight delay, or it just takes me a while to notice since the volume is not usually loud.

I am wondering if anyone else is having the same issue with their handset, and if there is some feature/functionality causing the issue. I have contemplated the possibility of accidentally pressing the play button on the headphones while I put the handset down, but it seems rather unlikely.

I'd be happy to hear if people have had similar occurrences, and if they have found a cause or a solution to their similar issues.