Why was railroad invented?

The railroad was invented to move people and goods across land in an efficient manner.