The signature
The first few bits of every JPEG are always the same.
A signature. A "this is a photo" stamp baked into the data.
A program reads that signature and says:
"These bits are a picture. Show them as pixels."
Without that program, the bits are meaningless.
The meaning is never in the bits.
It's always in what we agree they represent.