Photobombing
From Wikipedia: Photobombing is the act of purposely putting oneself into the view of a photograph, often in order to play a practical joke on the photographer or the subjects.
This image taken in Wales in c.1853 is possibly the earliest example of a photobomb.
https://en.wikipedia.org/wiki/Photobombing