Hallway light switch also controls electricity to adjacent rooms
And this is why people shouldn't slap wires on screws willy-nilly

The previous installer apparently thought that all wires belong on screw terminals, which isn't true here, and combined with the 3-way to yield the bizarroland behavior you see here.  Fortunately, this is easy to fix.

Make sure the breaker's off. Take the two wires off the left hand side of the switch and wire-nut them to a short length of the same size wire to serve as a pigtail.  Land this pigtail on the black screw on the switch.  Turn the breaker on, and enjoy your outlets working all the time now.