It depends on the game you're playing. If it's a random encounter-based system, certain enemies are programmed to appear in certain areas, while others, you can just walk up to and fight on the battlefield.