Keyboard focus

Why is this done twice, once here and once below?