Every possible route Hamas terrorists could have taken the hostages into Gaza would have passed through at least 5 other hospitals before reaching Shifa Hospital.
They didn't take them there for "medical treatment"; they brought them specifically to Shifa because it's their headquarters.