Well, the first shot was made with a Canon PowerShot camera, with a very small sensor and a 6 millimeter lens focal length, and it shows a wide-angle, low-magnbification image. Due to the small sensor, short lens, and wide-angle, low-magification image, there is adequate depth of field, and most things look "acceptably sharp", which is a criterion of depth of field--that things look "adequately sharp" in an image, seen at a particular size, from a range of so-called appropriate viewing distances.
The second photo was made with a Canon Rebel T4i digital SLR and 28mm lens, using a MUCH BIGGER sensor, and a lens that is over 4x longer, and is NOT a wide-angle segment of the scene. The larger sensor, longer lens, and relatively magnified view all combine to give significantly LESS of the scene that is rendered "acceptably sharp". As you look at the building fronts, you can see that the acceptably sharp areas "drop off" to blurriness around 100 feet behind the man.
The angle of view is different; the camera sensor size is different; the picture angles are different; the first shot is VERY TYPICAL of the results that one gets with a small-sensor compact digital camera with its very short focal length lenses; the second frame is pretty typical of how a 28mm lens on a larger-sensor APS-C d-slr behaves.