Yes I understand that conceptually.
But the middle autoencoder layer is not really an output layer, what would constrain it to linear representations?
I assume normal output layers are constrained to linear representations by the supervised training process.
So if the NN is well trained, the second to last layer will have linearly separated the different classes (as much as possible, anyway). Earlier layers may not have completely linearly separated their inputs, but they are probably going to lie along simpler manifolds than even earlier inputs.
There's a good blog post on this here: http://colah.github.io/posts/2014-03-NN-Manifolds-Topology/