Why it's not possible to manipulate the TWSR directly?
Why it's not possible to manipulate the TWSR directly?
  i2c c switch


Because your premise is wrong: it is routinely done to manipulate twsr directly.

As to the use of masks, well, because sometimes you only care about certain bits but not others. So you mask away those that you don't want.

Just that simple.