Apparently nice duality between classical and quantum mechanics first noticed by Dirac. As a graduate student of mathematics I believe such a wonderful similarity in their mathematics have a deep root and of course is not accidental. But I'm not so expert in physics that I could find and explain this root.
I also added a comment below to somehow clarifying question.