Answer
Shelter, food and medical care were some of the things Shalit was provided with according to Islam's laws regarding prisoners of war. Shalit was held by Hamas in Gaza, which is governed by Islamic law. According to Islamic law, prisoners of war are entitled to be provided with shelter, food and medical care.