Flowers are colourful, beautiful and attractive so that
Insects get attracted towards them.
Flowers are colourful, beautiful and attractive so that pollinators like insects and birds can be attracted to them. This helps them in cross-pollination and ultimately serving the purpose of flowers.
Humans are also pollinators in some cases!