Pharaoh did what was reasonable. He rewarded a person who had benefitted him.