Why does the Shopify store not index on search engines?

The page is being redirected because the content after the redirection is duplicate.
For example, A and B are two different URLs, but they display exactly the same content. This often happens when the same product is accessible through multiple different URLs.
Browsers follow the rule of indexing only one URL for identical content. This helps prevent duplicate content issues and improves the user experience.
So some URLs are destined not to be indexed.