That’s exactly what the WEEE directive is in the UK/EU. I ran a company that manufactured and sold an electrical product and we had to pay an amount based on weight sold per quarter from memory. I have no idea if it’s actually used to help with disposal of end of life electrical waste but we paid a decent amount of 8 years of sales.