This typically happens because you ran a prior command, whether that’s brew, git, htop, or similar, as root or with sudo, and thus the creation of the .config directory or a subdirectory had root ...