Edit: there’s lots more to say about DJing of course, maybe someone else will chime in. One aspect to keep in mind is that DJing is important primarily in dance music. If you don’t go dancing at clubs you may not be aware how different dance music is to traditional music meant for listening. A lot of the focus of dance music is generating tension (“build”) and releasing it in a pleasant manner (“drop”). Doing that at a pace that works for the energy level of the crowd at that moment, without unexpected shifts in energy levels, is not trivial. It requires taste and experience, and aims to create a more cohesive and unified experience for the dancers than a playlist could.
Phew! Can you tell I recently got into DJing? ;-)