It lets an object guard its own invariants instead of trusting every caller to update state correctly.
Chapter 3 moves beyond basic modeling into safe domain rules. Encapsulation matters here because methods can reject illegal transitions, such as a negative price or impossible quantity, before state changes. That is stronger than simply hiding fields for style reasons.
Additional Notes
Why does encapsulation matter when enforcing domain rules?