Anchor bolts tie the sill plate — and through it the whole wood structure — to the foundation, resisting the uplift and lateral sliding that wind and seismic forces produce. Spacing along the run matters, but the distance from each end of a plate section matters more, because an unanchored end is a free cantilever. With the nearest bolt three feet back, that end of the plate has nothing holding it down or in place, and the framing bearing on it can lift or shift as a unit before any bolt is engaged. This is why the recognized practice is a bolt within a short distance of every plate end, including at splices and at each side of an opening, and why an inspector counts ends as carefully as spacing.