When did that start? I have always had to re-enter the WiFi keys on a new phone or after a hard reset or using WDRT. Also always have to set up all the email accounts again with their passwords and assorted IMAP parameters.
I always thought of that as necessary evils. I don't much like the idea of MS storing my email accounts/passwords and WiFi keys in the cloud where they could get hacked.
It's been that way since 8.1
After hard restart, i will need to log into a wifi network by typing in the key.... Once i log into that wifi network and sign in with my Microsoft account it's pretty straight forward after there:
Go to settings>accounts>sync your settings.... the "Passwords" option may be or or off... if it's off, you will need to turn it on and you would be prompted to verify yourself... If it's on, it will prompt you to verify your self. If i remember properly, you need to verify your identity via the Microsoft authenticatior app or another method like via a sms message or something.
Once you verify, your WiFi networks will show up under "manage known WiFi networks" in your WiFi settings and your passwords in edge and favorites in edge will all sync.
It's much easier this way and I am not worried about being "hacked".
We live in a cloud era.. Going forward , everything will be cloud focused. If you're worried about information being stored in the cloud where it could get hacked, then you probably should not be using a smart phone.