Or people with more dangerous routes are more likely to wear helmets.
There's also some data to suggest that drivers are less careful around cyclists with helmets, e.g. passing them with less distance.
Somewhat related, specifically in the context of requiring helmets there's also arguments that people dislike them enough that the reduction in cycling happening would have worse overall effects than the injury reduction.