What was the purpose of Amtrak?

Amtrak is a train service that can take you to tons of places in the USA,south Canada,and mexico.