why does random or varied practice temporarily inhibit performance and enhance learning

why does random or varied practice temporarily inhibit performance and enhance learning