Theft is not only a criminal offense, but may also subject the offender to civil liability for damages.
This is especially true in shoplifting cases involving retail stores, even if all the stolen items are recovered by the store. Many courts will require you to pay restitution to the alleged victim.
Additionally, a theft conviction goes on your permanent record. It can be a stain on your reputation, affecting future job prospects.