The old woman was saving money in order to go to a pilgrimage and attain 'moksh'. However, she realised that giving money to the needy and making their lives better is the supreme service to God that is incomparable to visiting a temple. Therefore, she gives the money to the poor orphan girl.