kidney produces urine that has urea and uric acid that if water content is more then acid is dilute and comes out freely. If water content is less then acid is concentrated and so lining burns when come out.
If you store urine for 5 or 6 hours when comes out it irritates the lining