Uncertain; see the Galician cognate. Maybe from Vulgar Latin *munnecca, *bunnecca, which also yielded Spanish muñeca, but meanings other than 'doll' (and derivates) don't match.
Practice speaking and memorizing "boneca" and many other words and sentences in Portuguese.