Does code for template locks make sense?

Hi there,

I don’t understand the attribute code_format_template for a template lock.

Why should I protect a template lock with a code, if you still can access the entities that are combined in the template lock without code?

Do I misunderstand anything?

Thanks for your help!