They prove its consistency relative to another mathematical theory we assume to be consistent. That is if that mathematical theory is consistent then so is the kernel. In the case of Lean's con-leche and con-ron, it is proved consistent relative to ZFC + infinitely many inaccessible cardinals.
ZFC + infinitely many inaccessible cardinals is a fairly weak extension of ZFC widely thought by set theorists to be consistent. This is especially the case if ZFC is consistent (although by Godel we can't know for sure!).
ZFC + infinitely many inaccessible cardinals being inconsistent would be a really big deal! Given how confident set theorists are about inaccessible cardinals most likely it would mean that ZFC itself is inconsistent.