Most likely your web-server (apache, NGINX...) does it. It trying open real path and if real path not exists passes request to index.php of CodeIgniter.
See you web-server configuration.
Also by default CodeIgniter routing opens Controllers by this mask: example.com/index.php/controller/method -> your-site.com/temp/view