An analogy merely stating that two things are “somewhat alike” has little explanatory force. An apt comparison identifies a particular meaningful quality that clarifies the subject.
Calling both knowledge and light “good things” is too generic. Their shared role in enabling someone to find a path—guidance—makes the comparison precise.