لَنْ gives the imperfect a strong negative meaning tied to the future.
Compare:
● يَفْعَلُ — He does, or he will do.
● لَنْ يَفْعَلَ — He will not do it at all.
Two things happened together: the meaning became a strong future negation, and the first-group final dammah changed to fatḥah.