In أَوْفِرُوا اللِّحَى, the verb أَوْفِرُوا is followed by اللِّحَى: the direction to grow concerns beards. In أَحْفُوا الشَّوَارِبَ, أَحْفُوا is followed by الشَّوَارِبَ: the direction to trim concerns moustaches.
Ignoring the link between each verb and its object could reverse the meaning. Reading the grammar in place helps a beginner understand which action applies to which object rather than merely memorizing isolated verbs.