Why even write Claude code in JavaScript at that point, assuming they write the application logic in node and also include the interpreter in the application?

Probably because the team lead is a web developer, and whatever he says goes. Companies are typically very hierarchical, even if they like to claim otherwise.