I can see the reason, but I think it was done poorly. In fact, where I live, it definitely does NOT meet code in one respect, and it has one obvious bad connection.
First, the good news, with a little note of caution. In the foreground between the two screws for Black wires (Hot side) the brass tab that normally is there to link the upper and lower connection points has been broken off. This has converted the device into what's called a "Split Duplex" receptacle, as opposed to "plain Duplex". That is, the upper and lower halves of the outlet fixture are actually fed completely separately from each other from separate breakers in the box downstairs. So, EACH outlet half can support a load of 15 amps, assuming the wiring is 14 gauge and each breaker is 15 amp rated. The "note of caution" is that usually this is done using a single 14/3 (plus Ground) cable with Black AND Red wires for Hots, and White Neutral, and that cable is fed from a DUPLEX breaker in the panel. The important point here is that such a breaker is designed to cut off BOTH Hot lines at the same time, so a breaker in the "off" position leaves NO live Hot wire inside this outlet box. Since this particular job was done with two separate 14/2 cables from the breaker box, we cannot tell whether they used the proper DUPLEX breaker, or just two normal single breakers.
Now, looking closely we can see that two Black Hot leads are pushed into the two holes in the back on the Hot side, and two White Neutral leads into the holes on the other side. The outlet device is designed for use this way, so it certainly does meet code there. Personally, especially on outlets that might see larger loads, I prefer to use the screw terminals and ensure a really solid electrical connection, and avoid the push-in holes. But that is my preference, not a code requirement.
Here's where I question whether code has been followed. In my area, one is NEVER allowed to use the terminals of an outlet device to make junctions of conductors. ALL such junctions need to be made using proper wire joint items like twist-on nuts or compression fittings, and the resulting junctions folded into the back of the wall box. Those junctions can include short (6" to 8") leads that come out to the terminals on the outlet device. In the photo posted by OP, it is clear that a third cable of 14/2 (plus Ground) wires has been brought into this box and connected to ONE of the two power supply cables by using the screw terminals on the outlet device. AND, even WORSE: look closely at the top screw in the foreground to which one Black Hot lead is attached. It is NOT tightened down on that wire!! That connection is just loosely wrapped part way around the screw! We can't see how the matching White third wire was done on the other side.