If children were orphaned, guardians were appointed. Before 1811, some regions had special weeskamers (orphan chambers), in other regions these appointments were handled by the court. After 1811, all guardianship appointments were handled by the court.
Read more about using guardianship records to learn about your orphaned ancestors.