Looks like some kind of buzzer rather than a socket...
As others have said, its a buzzer of some kind - could be door bell, house alarm, fire alarm etc. Probably disused as you've not heard it buzz I guess. Take it down 
Lolz at "celling" its obviously mounted just above skirting peeps see carpet on right of photo.
That's a piezo siren for a house alarm.