Imagine you want to read a book from a library. You don't own the book, but the library lets you borrow it under certain rules. Software licensing works similarly. When you get software, you don't usually own it outright; instead, you get permission to use it under specific conditions, like borrowing a book.
Just like a library book has rules--how long you can keep it, whether you can copy it, or if you can lend it to a friend--software licenses set rules on how you can use the software. Some licenses let you use the software freely, like a public library book anyone can borrow. Others require you to pay or follow strict rules, like a rare book that can only be read inside the library.