Archaeology as it's practiced today is a fairly recent invention, but people in ancient societies did unearth and study older artifacts and inscriptions. I wrote about this in Were there any archaeologists in ancient cultures?