According to his backstory established in exposition dialogue on "The Mandalorian", Kuiil was sold into indentured servitude to the Galactic Empire and spent many years working for them against his will prior to the events of the television series.