Why are there so many ancient poems in Tang Dynasty?

Sometimes the popularity of a literary work or the wide spread of a genre is closely related to the ruling class. The Tang Dynasty experienced the Wei, Jin, Southern and Northern Dynasties and achieved the unification of the Sui Dynasty, which laid a good foundation at that time. In addition, in the Tang Dynasty, following the Sui system, the imperial examination continued to be used to select scholars, and special attention was paid to the investigation of poetry genre, so poetry became a common practice. At that time, the literati were basically masters of poetry, and many emperors were poets, so it is not surprising that poetry in the Tang Dynasty was popular.