Answer
The antibiotic takes time to kill all the non-resistant cells. The resistant cells are not killed off, but their numbers are suppressed to levels that permit the immune system to control them.
Work Step by Step
If one stops taking the antibiotic too early, this would facilitate the survival and resurgence of the resistant cells to the detriment of the patient.