This demonstrates latent learning.
Latent learning is a type of learning which is not immediately obvious and which occurs without any type of reinforcement. So those rats who did not receive a reward learned what they needed to do even without the food reward, whereas the other rats might forget what they learned immediately.