I read that some think he brokered a deal with Cersi for her unborn child to take the throne. That is why Cersi came back out and (pretended) to offer her help. Tyrion was probably thinking “Jon better not get her pregnant cause I already promised Cersi her child could have the throne since Dany is barren”. Remember…