Bitcoins are like electronic cash. You can get bitcoins the same way you would get cash: by working for them, accepting them in trade, taking them as donations, stealing them, or begging for them. And unlike cash, you can also acquire bitcoins through a process called mining (though this option is no longer a viable way to profitably earn bitcoins unless you can purchase and run expensive ASIC mining rigs).