Today, paying visitors contribute to the cost. The castle belongs to the Austrian Republic, obviously a lot of tax money goes into it, and rightly so. Schlosshof is one of the major sights in Lower Austria, and tourism is an important source of income in Austria. No sights, no tourists 😁