Looks like a gangable box, with both sides removed?

I suspect he left the remnants of the box so that it could hold up the cover plate, so he didn't have to patch the wall.