Natures instinct is to survive regardless of the situation. Kudos to Fido and the people that rescued him. After 3 weeks I'll bet he is a little hungry and thirsty.
source: http://www.mediaite.com/tv/japanese-dog-found-alive-floating-on-debris-3-weeks-after-earthquake-disaster/