This could happen due to a number of reasons. A misconfiguration on your shared hosting server can sometimes change those permissions without you doing anything.
For example, your web hosting provider ran an upgrade that unexpectedly changed file permissions.
If everything else is working fine on your WordPress website, then you can simply apply the correct file permissions to fix the image upload issue.