Spock, Bones and Kirk

Spock explains that they only have 30 minutes to look around before they need to go deflect the asteroid heading towards this planet. Wait, why are they wasting time looking around here in the first place?