The urinary system maintains blood homeostasis by filtering out excess fluid and other substances from the bloodstream and secreting waste.