The behavior you're describing is instinctual. Difficult to relate to because we only see tiny remnants of instinctual behavior in humans. But I'd venture to guess that acting on instinct does not require any understanding of abstract concepts (or indeed the language in which such concepts would exist).