To raise capital. Let's say I wanted to build a mall. I sell stock to raise money to build the mall. The people who bought the stock are called shareholders. Shareholders are part-owners of my mall.