why is the .HEIC suffix sometimes uppercase and sometimes lowercase
There is no functional difference, it's solely down to the programming decisions of the originating program. Some choose to do it fully uppercase, some do not.