Stablecoins appeared as a response to the high volatility of the first cryptocurrencies (like BTC), to provide a more "stable" settlement asset. Among the earliest experiments in 2014 were bitUSD on BitShares and NuBits; right in 2014, Tether USDT (originally Realcoin) was launched.
A number of early projects eventually failed to keep the bitUSD lost $1-peg in 2018. Algorithmic TerraUSD (UST) was launched much later in 2020 and collapsed in May 2022.
These episodes showed the risks of unsecured/algorithmic models, while either fiat reserve stablecoins (USDT/USDC) or crypto collateral like DAI (launched in 2017 and since 2019 - multicollateral) gained stability.