I agree that is a big concern, but laws of some countries could make contributing to some projects a bit dangerous for some people.
For a weak example, old and potential crypto laws in the US and probably other Countries could be a concern for a project. see:
https://www.openbsd.org/crypto.html
> If any non-American cryptographer...
It seems to be hard to draw a fair line with these things.