Question: why did shmi skywalker die?
Answer: After Anakin left to become a Jedi in 32 BBY, she was sold to Cliegg Lars, who freed her and married her. Just before the Clone Wars, Shmi died in her son's arms after being brutally tortured by a band of Tusken Raiders.