The price of a stock is determined by the demand and supply of the said stock in the share market. Hence, it fluctuates every day and within the day too. As an investor, you buy stocks and earn gains either through the dividends declared by the company or by selling them at a higher price.
However, when you need to sell the stock, if the price is low, then you stand the chance of booking losses. This is market risk.