It's a shallow wiremold type box. There are quite a few others. This is a countertop; the appliance is a microwave.
The source of the NM is a male cord cap in a duplex behind the cabinet.

Male cord cap, cord to a wiremold box with a GFI/receptacle.

Basically, an attempt by a handyman/maintenance man.


John