Sim lock is like a safety lock that is put on your phone. It is like your parent putting a lock on your toy box so that only you can play with your toys, and not others who might break or take them without your permission.
Similarly, when you buy a new phone, the company may put a sim lock on it so that only the sim card of their company can be used on that phone. It's like a password that only lets you use a specific sim card on your phone.
This lock is put in place to prevent other phone companies from using your phone and also to prevent you from using other sim cards on your phone. However, if you want to use a sim card from another company or switch companies, you need to remove the lock.
Removing the lock is known as unlocking your phone or sim. It means that your phone will accept any sim card from any company, which will give you the freedom to use your phone the way you want to. But, make sure to ask for help from an adult or a professional if you want to do it because it can be a little complicated.