Why cannot the routing engines of PHP handle the /.pages?

So, I was working on [routing] mechanisms. I was trying to set up dynamic pages for my site. Something like this /@{username} pages.

I was trying what the server can handle, and then I came across the conditions that is not being handled properly. What i tried was: localhost:8080/hello

This route was not set to any controller so, this returned a 404 page.
But when I tried /.hey I was shown the forbidden page. I tried /.htaccess then other page names random ones /.kishor and found that none of these pages are being handled as also not being captured by the index.php file.

Any way to capture these requests as well and then manage by the routing mechanisms? I tried this on my website and the same occurs if the file exists.

Tried, wordpress.com/.htaccess and that page is not managed either, also the same on laravel.com.htaccess. Any methods to solve this? Any method to handle these links as well by the index.php in the page?