Humans think there's some magic to us that can't be reproduced by machines. But there really isn't.
We're a pattern matching machine with a conscious interface thrown over the top.
Neural networks are really good at finding patterns. Train it on the positions of the planets over a couple decades and it will internally come up with the equations to calculate them and apply those to future and past inputs.
It can come up with equations we don't even know as long as input and output is available for training. Somewhere deep in it's black box it has them.
Art is no different. There's a hidden pattern to art. Something that triggers our brains to react a certain way. You can literally get degrees in the study of it.
Give it enough data and it will learn the patterns.