"Lesson" vs "unit" in books

I am so confused about unit and lesson in books. I looked up Longman Dictionary and it said "a part of book". What's the difference between them in this case?


A unit is a part of something larger, while a lesson is when you are taught about something. They mean different things on their own, but in the context of a book they are just various names for sections.