Interesting, though I don't totally see how deep learning would be similar. On deep learning, it is my understanding the weights are learned from the data. These are effectively constants, and represent logical rules.
So in essence, the rules which relates input to output are learned from the data in deep learning.
In nearest neighbour, the rule wasn't learned, we figured out the rule ourself: "use the nearest data point's result".
But in deep learning, the rule might be something like when feature x and y are between z range of each other and etc. And this rule is not defined by us, but by the weights which are learned from the data.
Effectively, deep learning thus learns the rules that define the relationship between input and class. But nearest neighbor is just a static rule that happens to be pretty general in essence, so it gives okay result for a lot of problems.
Not an AI expert, so take all this as my simple current understanding.