The token bank means one thing next to river and another next to loan. So every layer of a transformer lets each position pull in information from the other positions.
How much it pulls from each one depends on what the tokens say, not on a fixed window. Attention is the step that does this, and it works like a lookup.