You are confusing things there. The 50mph limits on the A470 and M4 are for air quality reasons and are where those roads get very close to residential areas (and last thing I saw were working I believe?).
The 20mph limit is in residential areas where car safety improvements don't mean much for pedestrians hit by cars ,especially when you consider the absolute tractors that people are now driving around in.