Hamas uses hospitals as headquarters for their terror.
I see the logic. This way when they get bombed and injured, they won't have to go to the hospital. They will already be there.