If you want to your code to always be free, GPL is a good choice. If your want your code to be used by everyone, including e.g. all large browsers, you really need a permissive license.
Just imagine if SQLite was GPL-only, barely anybody would use it.
Just imagine if SQLite was GPL-only, barely anybody would use it.