It seems the 2 outlets were on different phases of you house electric, which induces a hum. With them on the same outlet/phase, hum is gone, makes sense.
You house is probably fine. You can use a 3-light tester to see if the wires are reversed on either outlet.
You house is probably fine. You can use a 3-light tester to see if the wires are reversed on either outlet.