Besides, as you can see by the spotwelds on the box, it is mounted open upward, so the wires pass through a knockout on the back of the box.
What kind of connector would be approved for passing single, non-sheathed conductors? Plus, the wood is certainly not non-flammable.