Most criminals do not stop after they get caught the first time.
I can't find shoplifting-specific statistics, but then again, essentially nobody is being jailed for only shoplifting anyways, so it's a moot point in a conversation about incarceration.
On a broader discussion of the importance of incarceration in reducing continued victimization of society:
"In many states, up to 80 percent of the youth who are incarcerated are rearrested within 3 years of release" - https://csgjusticecenter.org/publications/reducing-juvenile-...
"According to the National Institute of Justice, almost 44 percent of the recently released return before the end of their first year out. About 68 percent of 405,000 prisoners released in 30 states in 2005 were arrested for a new crime within three years of their release from prison, and 77 percent were arrested within five years, and by year nine that number reaches 83 percent.
The solution for your example of minor property crimes is reducing the cost of incarceration, not letting them continue commit property crimes and therefore offload the costs of society's failure to police criminals onto citizens.
To your point of "how do we make them stop", incarceration/forced hospitalization is ironically the answer to some of your supposed "causes" of crime, like mental illness and drug addiction. Look to a place like California or Seattle to see the impact of these approaches, where every imaginable alternative has been tried to control homelessness, drug addiction, and nuisance crime, far exceeding the cost of just locking them up.