No, paying dividends is not mandatory. Companies may choose to reinvest profits into the business for growth instead of distributing them as dividends.
Companies typically announce stock splits to: Make their shares more affordable to small retail investors. Increase liquidity in the market. Attract more buyers and sellers to trade the stock, helping to discover its true value.