It does give them a sense of security, and every animal needs its own "space" sometimes, including us humans!
If your hidey houses are big enough or your cavies small enough, you will also sometimes find that more than one piggie will be cuddled up in there.
I don't think it affects bonding... but I'm also not a cavy psychologist.