Curate, connect, and discover
How does Nagito know about the ancient ruins? He was not initially there when everyone gathered around it back in chapter 2 and they never brought it up until Chapter 5 when the remaining survivors were looking for the bombs. That point he had already hidden it there for a short bit.