Why do we have to turn on airplane mode when traveling by airplane?

Why do we have to turn on airplane mode when traveling by airplane?

What is it good for? Is it mandatory to turn it on? I've seen many people who didn't turn it on. What happens if you don't?
quanswer.com