Why do open-source projects use licenses?
Short answer
Licenses state the conditions for using, modifying, and redistributing software, aligning the expectations of authors and users.
How it works
Publicly visible code is not automatically free of conditions. Check the license text and the terms of dependencies.
Key point
The practical point is this: Check the license text and the terms of dependencies.