Why was the walkie talkie invented?

so the army could talk to each other when someone was behind enemy lines