How do AI art generators work?

To develop AI art, artists design algorithms that "learn" a certain aesthetic by examining millions of photos rather than following a set of rules. The system then attempts to produce new pictures using the aesthetics it has learnt.