Does anyone know what is the technique they use in some of the documentaries where they use really old photos, but they make them look like this wiggle gram? I know it's not AI because the photos can be decades old, but they still do some stuff which that makes them almost see like 3D.

I think that's a more manual process. An older version would involve cutting out the different layers of foreground and background and animating the movement with a bit of fill to add areas where there wasn't information in the original photo. Now I think there are some AI tools that can 'animate' old photos but they look more like movies with the look of the original photo over them vs the thing I think you're referencing.