There’s clearly a lot of training involved here, but marmots do frequently groom each other in the wild, so they would presumably have a natural instinct for holding still while they are being groomed. I’m guessing the training was built upon this natural behavior.