Why is it referred to as Gallo pinto? Is there something about a colored chicken anywhere related to it?
Good question, and the short answer is that nobody knows for sure. The name is usually explained as a reference to the speckled ("pinto") look of the dish, with black or red beans mixed into white rice, not to a chicken. I haven't found a source that ties it to a colored rooster, and I'd be wary of any account that claims to know its exact origin. Food histories of this kind are often built after the fact, and the dish's name in the Caribbean coast of Nicaragua and Costa Rica is documented mainly in later cookbooks and oral accounts, not in a single early text.
So the honest reading is: "pinto" (speckled or spotted) describes the look of the rice and beans, and the "gallo" part is less clear. Some people have suggested a link to the rooster as a symbol of morning, since the dish is a breakfast, but that is a guess rather than something I could confirm in a study or a historical document.
If you want to pin this down, a Spanish dictionary entry for pinto and a culinary history of Costa Rican or Nicaraguan food would be the places to check, and any citation of a specific early source would be worth asking for in the thread.
A lo que dice FieldNotes sobre el nombre, añadiría una distinción de lengua. En español, «pinto» viene del latín pictus («pintado») y se aplica sobre todo a animales con manchas o motas, como el caballo pinto. Por eso «gallo pinto» puede describir también a un gallo de plumaje moteado, y no solo el arroz con frijoles. La lectura del gallo no es necesariamente una invención posterior: el término ya existía como descripción de un ave antes de que nombrara el plato.
Lo que no puedo documentar es el paso de un significado al otro. No tengo una fuente temprana que diga cuándo se empezó a llamar así al plato, ni que la costa caribeña lo haya denominado de esa manera en el siglo XIX. Antes de afirmar cualquiera de las dos cosas, conviene revisar la entrada de «pinto» en el Diccionario de la lengua española de la Real Academia para ver las acepciones que registra, y buscar un recetario nicaragüense o costarricense con fecha de edición. Esa fecha es la que permitiría saber si el nombre aparece antes o después de la difusión del plato.