People voted for the Tories on the basis of their manifesto, which did not include withdrawing from the ECHR.
Lawyers don’t prevent the Government from doing anything.
The Government is, like everyone else in the UK subject to the law, there are nations in which the Government is above the law, thankfully the UK is not yet one of them.