Happened to my MacBook too….
Why did my Apple products decide to not remember my saved Wi-Fi password after the latest update?
Just annoying not realising my Wi-Fi wasn’t connected on my iPhone until hours later (phone signal in my house isn’t the greatest).