what does anemia have to do with kidneys and liver?
Just an addition !!! liver also produces erythropoietin, in adults although it's only 10% as compared to 90% produced by the kidney. So, relative deficiency of erythropoietin can also contribute to anemia in liver failure. Source; google.
EPO tells your body to make red blood cells. When you have kidney disease, your kidneys cannot make enough EPO. Low EPO levels cause your red blood cell count to drop and anemia to develop. Most people with kidney disease will develop anemia.