Investor fervor for artificial intelligence that has driven South Korea’s stock market to the top of global rankings is taking a toll on another market: government bonds.