Those are mandatory in Germany. Recently-ish they started forcing supermarkets and other large retailers to accept small electronics, but in practice I never managed to do it. You pretty much have to argue with the staff every time.
https://allaboutberlin.com/guides/sorting-trash-in-germany