On The Origin of Species by Charles Darwin Chapter 15 Page 36

How it comes that certain colours, sounds and forms should give pleasure to man and the lower animals, that is, how the sense of beauty in its simplest form was first acquired, we do not know any more than how certain odours and flavours were first rendered agreeable.

As natural selection acts by competition, it adapts and improves the inhabitants of each country only in relation to their co-inhabitants; so that we need feel no surprise at the species of any one country, although on the ordinary view supposed to have been created and specially adapted for that country, being beaten and supplanted by the naturalised productions from another land. Nor ought we to marvel if all the contrivances in nature be not, as far as we can judge, absolutely perfect; as in the case even of the human eye; or if some of them be abhorrent to our ideas of fitness.