My iPhone appears to be faulty, I thought. The YouTube app started playing audio through the speakers even though I had flicked the mute switch on. Apparently, this is by design and that apps can just ignore the switch! Apart from the alarm clock, that is the most ridiculous system design decision ever.
