Why does a "Keyboard Assistant" prompt appear the first time?

Why does a "Keyboard Assistant" prompt appear the first time?

The "Keyboard Assistant" message that appears the first time can be closed and ignored.
This is the system (e.g., macOS) detecting a newly connected USB or Bluetooth keyboard and using this assistant to identify the key layout, ensuring subsequent input is correct.