To check the grotto, stand in front of the cave entrance and press A. It is not a walking encounter, so wandering around the area will not turn anything up.
Contents are rerolled once a day: about 20% of checks hold a Pokémon, 40% hold a visible item, and 40% hold a hidden item that only the Itemfinder reveals. An empty grotto is the normal result, so check back tomorrow. The first grotto you ever check is guaranteed to hold a Pokémon, which is why later empty ones can feel like a bug.
The rates in the table are each Pokémon's share when one appears, not a per-step or per-encounter chance. All Pokémon found in Hidden Grottoes have their Hidden Ability.