Why would a person want to buy shares in a listed company?

The person buy a shares in listed company to make a profit but in other words we can say the person buy the listed company shares to run there market without any hesitation.the listed company shares are like a golden egg but if you buy the shares in other company its like a speculation.