I deleted a mail account on my iPhone Apple mail-application. When I then started my Apple mail-application on my macOS, the same mail account requested the password. So for some reason and somehow, there is a communication between the mail applications that are on same Apple ID.