Inherited from Old Galician-Portuguese pecar, from Latin peccāre (“to sin”).
Practice speaking and memorizing "pecar" and many other words and sentences in Portuguese.