ECHR is not an EU court, but a separate entity, having for long had many non-EU member states.
ECtHR is not an EU court. UK is part of Council of Europe, which also includes Russia. Being member of Council of Europe entails mandatory treaty law of ECHR.