As a 'traditional musician' (i.e. I play a couple of instruments, read music, jam and write songs with real humans etc), I used to think this way, however actual 'good' club music takes a lot of time to produce in terms of selection and mixing and mastering of sounds. A friend of mine, who is a talented performer and producer, deconstructed some of these tracks for me, and pointed out just how much effort and talent it takes to produce good pop / dance / club sounds. So while on the surface it would seem possible to do something passable 'automatically', I am actually not too sure how good it would sounds, especially to audiences used to hearing the best that most talented humans can come up with. Allow me to coin the phrase 'club muzak' for what early AI 'composers' will produce (although I bet then that these 2017 'club muzak' will become all the rage again across the solar system in the late 2050s')!
I used to be a rave DJ and am friends with a couple of producers. The core of a dance music track is pretty well dictated by the sub-genre.
You can do a lot with a few wel chosen loops and generative music algorithms. What really sets off the best techno tracks is engineering and mixing, and I actually think that might be harder to get right with AI.