Nature itself is somehow shaped such that it is easier to create beautiful patterns than it is to engineer complex logical deductions.
It is a fundamental aspect of physics and reality. Beauty is just simple patterns.
We figured out that art is simple math. Engineering and law and planning not so much.