Unknown. Possibly from a pre-Roman Paleo-Hispanic substrate, or from North Germanic/Scandinavian flark. Compare Spanish charco, from which it could have been borrowed.
Practice speaking and memorizing "charco" and many other words and sentences in Portuguese.