To protect the object's internal state from external changes.
Private fields restrict direct access from outside the class, enforcing encapsulation. This control allows classes to regulate how fields are accessed or modified, ensuring consistent behavior. For example, a shopping cart's total should be calculated internally, not externally set.
Additional Notes
Why should fields typically be private in Java classes?