Because
Spoiler!
IDO knew MC can get pregnant without knotting, because MC became pregnant previous time.
(With all the spoilers you met in previous comments, I don't think this is anymore a spoiler but followed the proper tradition.)

.
Omegaverse >ω< https://mangamirror.com/manga-list/106967
.
Historical BL ♛➛ https://mangamirror.com/manga-list/122136
.
Best stories ⛧⁀ https://mangamirror.com/manga-list/106911


