Why did poetry gradually decline in the Song Dynasty?

Poetry has been perfected to a certain extent from the Han Dynasty to the Tang Dynasty.

If you want to surpass the achievements of your ancestors, you must find another way. Therefore, the Song people connected poetry with songs and developed the subject of lyrics into a literary symbol of the Song Dynasty. After the Yuan Dynasty, it developed into Yuan Opera. Rather than saying that poetry declined in the Song Dynasty, it is better to say that it declined after the Yuan Dynasty. Because lyrics and music are also a theme of poetry, an innovative form, and a combination of poetry and music.

In the Ming and Qing Dynasties after the Yuan Dynasty, romance novels became popular, and poetry declined.