Because Socket isn't supposed to exist in Error's mind. All he had to do was get on Error's bad side, which is incredibly easy to do...
Socket is pretty good a offending others.
+3 answers in: “slight problem socket isn't a Sans so he wouldn't be a Sans Abomination who knows what Error classified him as. Hell maybe just ask for unknown anomalies or something”