Guitar lessons provide a structured learning environment for you to gradually improve. A guitar teacher will provide you with the right information at the right time in order for you gain "quick wins" and feel motivated by your progress. It is possible to teach yourself and there are many free online resources to learn from. However students often find that these free resources do not provide enough structure and they lack the framework that a good teacher provides.