Even though, as pointed out many times above in this thread, 30kph is only a small amount over the legal limit, it is above it. Any e-bike that can manage that while providing assistance is not technically a pedalec, and so requires license, insurance etc.Indeed, its possible of course that 'Police Scotland' found something about the bike that required the rider to have had a licence and insurance, so a serious offence maybe.
Many people have posted many times on this forum words to the effect you'll probably get away with it, but if for any reason the police do take notice you are technically liable for several fairly serious offences. This one didn't get away with it. It does seem a shame though, given how many blatant offenders (wavy sounds here) do get away with it. I still suspect there is a lot more behind it that doesn't show in the article; maybe a history of reckless riding, or maybe the rider had recently stolen the policeman's girlfriend (or worse, manfriend).