Flamingo was borrowed into English from the Portuguese word flamengo when the Portuguese started exploring the New World and discovering flocks of this exotic fauna in the Caribbean and South America. Flamengo came from the Latin word flamma (flame), because of the bird's bright pink and red colouring (flamingo trivia: this is due to carotene in its diet, sometimes supplemented in zoos by food colouring!).
Interestingly, though, in Spanish, the word flamenco is used for both the pink birds and the stirring music and dance style originated by gypsies. Although the origin of flamenco is uncertain, it is also the word for "Flemish" in Spanish, and it is thought may have been used indiscriminately by Spaniards for anyone they deemed "foreign".
P.S. If you find the English language fascinating, you might enjoy regular updates about English usage and word origins from Wordlady. Receive every new post delivered right to your inbox! If you are not already subscribed, you can either:
use the subscribe window at the top of this page
(if you are reading this on a mobile device): send me an email with the subject line SUBSCRIBE at email@example.com
Also check out my upcoming Rollicking Story of the English Language courses.
Follow me on twitter: @thewordlady