Formal learning provides an assurance on the learning objectives of students. ie. by the end of xxx module, the student will have learned xxx, yyy, zzz...
This is particularly useful for teaching of items of necessity, such as traffic rules for vehicle driving, or abstract concepts that are unlikely to be learned informally, such as complex mathematics, Taylor expansion etc.