Imagine playing a game of hide and seek with your friends. Your friends are trying to find you, and you're trying to hide from them. Now, let's imagine that one of your friends decides to cheat and start looking for you while you're still trying to hide. That wouldn't be fair, right?
Well, unrestricted submarine warfare is a bit like that. During wars, countries use submarines (large, powerful boats that can travel underwater) to attack enemy ships. But there are rules about how they can do that. Unrestricted submarine warfare means that a country's submarines can attack any ship they see, even if it belongs to another country that's not involved in the war.
This might sound like a good idea for the country doing the attacking, but it can cause a lot of problems. For one thing, innocent people who are just trying to travel or carry goods from one place to another might get hurt or killed. And countries might get angry and start fighting even more because they feel like they're being attacked unfairly.
So, just like in the game of hide and seek, it's important to follow the rules and play fairly, even during a war. That way, everyone has a chance to win and there's less chance of anyone getting hurt.