It is clearly documented that &SYSECT is set to the current section name on entry to the macro and is not updated if the macro changes section.
https://www.ibm.com/docs/en/hla-and-tf/1.6?topic=symbols-sysect-system-variable-symbol Jonathan Scott, HLASM IBM Hursley, UK