A nephrostomy may be done for several reasons. It prevents a kidney from being damaged from a build-up of urine.