The kidneys are responsible for filtering metabolic waste products and maintaining homeostasis (stable internal conditions), including fluid and electrolyte balance. Prolonged fasting alters metabolism and generates increased waste products that must be processed by the kidneys.