It's not meaningless. If I give something away under certain conditions, I'm not forcing anybody to adhere to those conditions.
Instead, if they choose to adopt those conditions, they get free stuff from me (and a lot of other people.) In other words, it's an incentive program, not a requirement such as a law or regulation.
If you wish to use GPL-licensed code, your code must be open source.
If your code is open source, you may use GPL-licensed code.