Maybe you didn't know... The real function of kidneys is ... filtration
But how?

The arteries are little by little specialized ... at the endpoint, the glomerulus becomes a filter
And the blood is filtered by the little arteries...

Ending by... Urine

Marvelous, isn't It?