That and JS code is more readily available in the source of tons of webpages, not hidden away in some backend
Wouldn't most frontend JS in Web page sources be minified?
The logic is still there, it's not meant as obfuscation. Also plenty of sites don't minify cause that involves a whole toolchain.