Borrowed from Aragonese afeitar or Leonese afeitar, from Latin affectāre. Doublet of ahechar (“clean wheat with a sieve”) (inherited) and the later learned borrowing afectar.
Practice speaking and memorizing "afeitar" and many other words and sentences in Spanish.