Suppose a binary word of $n$ bits is the result of encryption (doesn't matter with what algorithm) that now has to be sent from person A to person B. Suppose additionally, A and B have a symmetric key that's a subset $s \subseteq \{1,\dots,n\}$. Before sending the message, person A flips all the bits whose indexes are in $s$. E.g. if $s = \{1,2,3\}$ the bits number 1,2,3 would be flipped. Given that $s$ is a symmetric key, person B can recover the initial encrypted message by flipping the bits back.
My question is: is this type of (or similar) approach used anywhere? Why wouldn't it be used everywhere?