img.src gives different URL than the one shown in inspector

When I was inspecting an webpage (namely, any web page from Wayback Machine), I found that any <img> element’s .src when you used in JS snippet (or console) would be the original URL, while in inspector it shows the one with archive.org prefix:

enter image description here

(Same goes for Firefox.)

How does this happen? I don’t even know this is possible.

Furthermore, how can you get the one that is shown in inspector?