If we leave the EU Cameron will certainly sign us up to this, however there are a number of EU countries (including France) who oppose it, so staying in is a better way to ensure we don't sign up to this.
Once we're in there's no getting out without totally bankrupting the country