Learning to live is an eternal process that doesn't happen overnight. It takes practice. It can be acquired by many different ways. Going to school is one way. There, we learn many topics that can help us to understand how and why the world works.
Reading can also be a good way to learn about life.
For those who are religious like Muslims, the Koran is a great inspiration which contains all of the basics of life. That book contains all a Muslim needs to know to achieve a great living and earn a place to Eden after death. There are other ways such as exchanging ideas, sharing experience with the family, friends and elderly and learning from our mistakes that can be a positive deal in the apprenticeship of life. Living in society implies sharing, caring, and listening to its members. That's why we learn to live and learn about the rules.