There are open source licenses that don't allow businesses to use them to make money without hesitation like the AGPL.
What matters is clarity. If code is licensed under a known open source license businesses know exactly what they can do with that code. Other users of the code also know that it supports the core criteria outlined in https://opensource.org/osd