David Kimura PRO said almost 4 years ago on Deeper Dive into StimulusJS :
  I agree. This application was in that weird transitional phase where the app/assets/javascript/application.js still had the require of UJS

//= require rails-ujs

However, on modern setups where webpacker is present and the asset pipeline is no longer handling the JS, you're absolutely correct.