He was there to 1) patch up Hamas fighters, and 2) give interviews about the killing of civilians (note in all reports they always cite “palestinian doctors.”)
Then he figured out 1) the IDF wasn’t leaving anything to patch up, and 2) he can now spread propaganda better at home. More microphones as it were.