书记 specifically refers to a secretary of a political party (especially the Communist Party of China), not a general office secretary. An office secretary is 秘书 (mìshū).
memory
The original meaning was 'scribe' (书 write + 记 record). Over time it evolved into the political title 'party secretary.'