Filesystem - Node.js

Why I must assign “secretWord” manually?
Exercise link:
https://www.codecademy.com/paths/web-development/tracks/javascript-back-end-development/modules/introduction-to-node-js/lessons/node/exercises/filesystem