From Old Portuguesecovardia, from covarda, from Old Frenchcoart, cuard, from coe(“tail”) + -ard(“pejorative agent noun”); coe is in turn from Latincauda. The reference seems to be to an animal “turning tail”, or having its tail between its legs, especially a dog.