These settings are used for dynamic compilation. They can be safely removed from the web.config if you do pre-compilation and only put the compiled assemblies on the webserver.
See also The impact of multiple compiler definitions in system.codedom in web.config