It comes from the Spanish language, but is ultimately derived from the Latin word "peccatum", which also means sin.