I followed Dilhan's suggestion about Windows firewall. I am using Laragon and running Ngix and Mysql. I noticed after I have added Laragon, Ngix and Mysql to the Windows Defender Firewall and checked both Private and Public checkboxes, it seems to have solved the Wordpress slow loading on localhost.