Why is there shaddah in عَلَّمَ?

Advanced Sarf Application: Ambiguous Forms, Weak-Letter Reasoning and Error Correction