In those cases, "lo" means "it":
- Te lo digo (I'm telling you it).
- Lo sé (I know it).
You can check it in the DLE:
lo, la
Del lat. illum, illam, illud, acus. de ille, illa, illud 'aquel'.
Neutro lo.
Forma átona de él.
- pron. person. 3.ª pers. m., f. y n. Forma que, en acusativo, designa a alguien o algo mencionado en el discurso, distinto de quien lo enuncia y del destinatario. A tus amigas las vi en la playa. No te pediré perdón, aunque no te lo creas.
This is one of the few neuter words in Spanish. The second example in the definition ilustrates it:
... aunque no te lo creas (though you don't believe it).
Maybe thus you will see it clearer:
—¿Sabías que...? —Sí, lo sabía.
—Did you know that... —Yes, I knew that (it).