Because most of the code that is “stolen so easily” is usually just code for the front end of websites and web applications. The browser user still has no access to the code on the web server that the app communicates with when it makes API calls on the front end.
js web app to a Python app, the Node. js one is almost definitely going to be faster. As Towards Data Science puts it, “Python is comparatively slower in performance as it processes requests in a single flow, unlike Node. js, where advanced multithreading is possible.”