Mining.
Buying specialized computers that do basically nothing but solve one type of math problem really really well. You get a whole bunch of these computers trying to solve this math problem (this is called “mining”), and the winners receive a block of bitcoin that can be sold or traded.
Thats the traditional way to make money from crypto without buying and selling. That’s a grossly simplified explanation, but it’s basically what’s happening.