What is the average attention span of an ostrich?
The Italian word for goat is capra; a desire to change direction
and a short attention span were traits always attributed to the
goat, and as such the word capriccio, which means whimsy,
developed. It is from this word that the English language borrowed
capricious, meaning apt to change direction on a whim. Neither the
animal nor the word has anything to do with Capri pants.
Source: see related link, below this answer.