You can buy Monero from an exchange or from an individual. Exchanges are the most common way to buy Monero; there are compliant exchanges in most jurisdictions. Some wallets include functionality to easily buy Monero with fiat or other cryptocurrencies. Alternatively, you can try mining Monero to get coins from the @block reward.