Why does government issue only bonds while companies issue both stocks and bonds?

Because stock is ownership, and "the people" own the government.