Cameron wants the UK to remain out of the Euro because the Euro will eventually require abrogation of national governments.
The euro is just one of many tools that they intend to use for that purpose. You signed up to any of those treaties, they got a tool for that.