The Origins of Representation Manifolds in Large Language Models