Why reduce all activity to such simplistic motivations? Maybe art is a spandrel. Maybe artists don't get laid any more often than non-artists. Maybe human beings do lots of things that have little to do with passing their genetic material on, because we've acquired motivations that aren't simply reducible to survival or sex. Maybe some of us realized that making art was enjoyable, regardless of whatever reason it arose in the species a couple million years ago.