The temporary container with many megabytes of dependencies are automatically removed, while the compiled module still exists on your main data volume. Use /znc loadmod or the webadmin to load your newly installed module.

Perl, Python and TCL modules

If you want to use any of these kinds of modules you have to install modperl, modpython or modtcl to your main znc container.