Clouds are important to create that dramatic sunset and sunrise sky. High clouds reflect the stunning colours of the sun light.
Without cloud, sunset and sunrise photos would look rather boring and flat, just like the following photo.
Clouds also act as a natural reflector. Cloud helps to balance the lighting on the subject.
Composing with clouds is another photography technique to create some sort of an ambience and mood to your photo.