Attachments that can use the $id$ variable allows for rebuilding of the collection of notes easier to figure out which attachments go with which note if users store images in a different folder, there was link corruption, migration to another app, or other reasons.