Fish can go a long time with out food, sometimes weeks. Having to adjust to a new home could be stressful on him where he isn't eating.

Sushi (my betta) didn't eat for a long time, but now he is a pig.