Raspberry Pi OS has a new way to set the Wi-Fi network name and password, SSH access, and other options while you install it. The latest update switched to cloud-init, so setting up a Pi from scratch ...
Sometimes, you don't have direct access to the Raspberry Pi running your project. Perhaps it's installed outdoors with no display and keyboard attached. Or maybe it was squeezed into a compact chassis ...