Control over headings turning into nodes

I’ve noticed that sometimes a heading turns into a node, ie it gets a property drawer with an ID. I’m not sure when/why this happens and I usually don’t notice until I close Emacs and I’m told a buffer needs saving.

What’s causing this, and how can I control it (turn it off)?

To transform a header into a node you have to assign it an id,
In your case, maybe:

  • there is a shortcut associated to org-insert-id that you accidentally executed, or
  • you captured a link and org-store-link is configured to assign an id when it is executed.

@magthe

As @solrach says , this variable might be the cause:
org-id-link-to-org-use-id. See if it isn’t set to t

It was indeed the case that org-id-link-to-org-use-id set to t. Now I’ve set it to 'use-existing and I’ll see if I like that behaviour better.