Can you help me understand why one would ever need a post-install script in the first place, please?
Compiling native extensions that link against libraries that can’t be included in the package for license reasons. That’s probably the one reason that simply can’t be removed.
To restart a service, or run ldconfig?
Ime the most reasonable case is an optional compilation of native components when prebuilt ones are not compatible. See also node-gyp