Classes group related state and behavior under one named concept.
Procedural code can work for small scripts, but it quickly becomes noisy when product, customer, and cart data travel together. Classes make the code read more like the store domain and less like disconnected variables.