No, that's just investing.
This is how savings accounts work, this is how CDs work, this is how treasury bonds work, this is how passive investing (e.g. via ETFs on index funds) works, and there are many, many more examples.
If you're keeping your retirement savings in an IRA / other local equivalent, whether owned privately or by your government, the same processes happen behind the scenes.
You put in capital, you lock that capital away for a while, you get back more capital later.
The differences here are in terms of possible returns. Bonds have (relatively) low returns but almost 0 risk, index funds have significantly higher returns but are also higher risk, though it's still pretty low if your time horizon is multiple decades, and there are crazy investments (think Bitcoin) with possibly eye-watering returns, but also an enormous amount of risk.
Now investments with "guaranteed" eye-watering returns (think >10% per year) and apparently 0 risk? Yeah, definitely a scam.