Idk what happened with you, but I inherited legos from my older cousins and then when I grew out of my collection my newphew got it. No legos ended up in a landfill.
If you threw yours out, that's your fault, and does not mean there needs to be an environmentally friendly way to make legos (which will undoubtedly be functionally worse and not last as long).