They are for storing the headrest when it's removed - stops it rattling around the boot
Yep, great wee design idea - although when you have a collapsible spare wheel like my benchie has, the sockets are of no practical use whatsoever.
My 3rd headrest is wrapped up in the loft as I think its a barrier to the drivers rear view.