The most fitting response is:
They were sponsored by wealthy patrons.
Many nineteenth-century artists relied on commissions from wealthy patrons, which often included government officials or institutions. This sponsorship could lead them to create works that aligned with governmental views or ideals.