What's the point of local LLM for coding?

Hi,

I'm thinking of buying a new computer and I found out you can run LLM locally.

But what's the point of it? Are there benefits to running AI locally for coding vs using something like Claud?

I mean could spend a lot of money to buy RAM and powerful CPU/GPU or buy a subscription and get updates automatically without being worried about maxing out my RAM.

For people, who have tried both, why do you prefer local vs online?

Thx