I think it was an ECJ ruling which prompted this change.
The ECnHR can be made much more difficult to access by rescinding the 1998 HRA so British courts won't have to take it into account in its rulings. Anyone who wants to argue something using the convention will have to escalate it to the top in the UK then go to Strasbourg.
The Tories said in their 2017 manifesto that they'd keep the HRA... during Brexit.