"shan't" is the contraction for "shall not" and this is the modal verb used here because part of secret-keeping is the obligation not to tell anyone otherwise it is not longer a secret. The other modal verbs - "couldn't", "needn't" and "mightn't" - do not reflect the obligation. They do not show that it is compulsory to not tell anyone.