Very clearly. There are lots of inconsistencies in the application of environmental rules. In the automotive case, solder in the electronics must be lead-free, even though the total quantity of lead used in this way in each car is very small and the electronics is likely to be recycled when the car is scrapped. Lead-acid batteries are permitted, no doubt because there is a well established recycling system. However, as owners often replace car batteries, not all find their way into the recycling system. Many get dumped.
Lead used for roofing and flashing slowly gets into the environment due to corrosion and being nibbled by squirrels, but it is permitted. Lead paint was originally banned in domestic situations because of the risk of children chewing painted woodwork, so maybe that was not the best example to pick. John