It’s a computer-era simulation of the 100 (?) year-old convention of using underline to represent emphasis in typewritten documents.
Or maybe the same convention might have even been used before typewriters, to mark up manuscripts? (A manuscript needs clear instructions to the typesetter, because someone’s handwriting might not make the distinction between Roman and Italic scripts immediately obvious.)
Regardless, it's certainly an old habit