when a customer have already an account, the link goes to login page and its ok. but when a customer wants to create a new account for the first time, it again routed to the login page which is wrong.
You need to configure this page in Woocommerce Settings > Account and Privacy
“Allow customers to create an account on the ‘My Account’ page” option is checked.