Inherited from Old Galician-Portuguese cozer, from Late Latin cocēre, from Latin coquere, from Proto-Italic *kʷekʷō, from Proto-Indo-European *pekʷ- (“to cook, become ripe”). Compare Galician cocer.
Practice speaking and memorizing "cozer" and many other words and sentences in Portuguese.