Photos kind of similar to this can be achieved using a tracking shot where the photograph is taken from a car in front of the car being photographed, however in this particular case the answer is CG and/or heavy Photoshop. Particularly for the second image, there is no way to viably get that shot sharp without having the background also sharp.
On the first, it might be possible to get something close with a tracking shot, but the radial nature of the blur on the inside seems improbable and it seems like the entire thing may well be CG based on the coloring and texture.
It is also possible that they took a photo where everything was sharp and then they added the blur with Photoshop and greatly increased the contrast and colorized it in a surreal manner, but it feels much more CG oriented.
Also, to clarify, this has nothing to do with panning. That is motion blur. Panning is when you turn the camera along the horizontal axis. This has nothing to do with that. Tracking is the correct term since the moving subject is tracked with the camera and in this case the camera would have to be moving (which is typical of many tracking shots, but not always a condition of them.)