In the default setup, WordPress will any 404 for static file extensions. e.g.
https://example.com/test.css (test.css doesn't exist, so the web server will pass it on to index.php i.e. WordPress).
Many times, due to some plugin like Autoptimize, WP Rocket, etc which change paths for css/js while...