How is smart card used as an electronic purse?

A smart card is just like an electronic purse containing specified amount of money. This money can be used for different purposes like paying taxi fares, airfares, etc.