Late 19th century. Oscar Wilde was part of the aestheticist movement, so it became associated with homosexuality. The related words 'artistic' and 'aesthetic' surived as euphemisms for homosexual for longer.