I would think it's congenital.
The kidney looks to be functioning properly? If infection to/from the organs or abscessed then that would be obvious in the surrounding tissue.
If no other signs of illness elsewhere, then the abnormalities are confined to the kidneys, the carcass good to go.