It is very common in old properties, mostly as they have lath & plaster walls that are utter s*** to try and fix anything in to.I have only come across sockets in skirting board on older properties with that really tall skirting boards
And work done long before building regs said otherwise.