Also, Android, iOS, and (if my memory serves) Windows Phone all exhibit the behaviour of pausing music on disconnecting headphones. Whether right or wrong, it is common and expected behaviour - doing differently (without good cause) is bad design.
I use dumbphones. Dumbphones do not pause the music (at least not the ones I've been using for the past 10 years), which is probably why I'm against this behavior.