Hi there,
Operating Systems treat disks as objects that can be trusted not to change state suddenly. When reading or writing files, the OS expects the files to remain accessible and not suddenly disappear in mid-read or mid-write. If a file is open, a program reading the file expects to be able to return to it and continue reading.
A disk image is a "virtual disk" which when mounted (say it activated or linked to PC), pretends to be a hard disk. When unmounted, it stays as a dormant file. This is done by the DISM commands.
Here are some links to dig more info regarding this.
Modify a Windows image using DISM
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/mount-and-modify-a-windows-image-using-dism?view=windows-11
-------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--