If these jobs are fully remote, why are tech companies going through the process of getting visas to import workers? Am I missing something?

Because Indians want to escape India and live in a Western country. They're not interested in remote work.