Traffic cops can do it to test the road-worthiness of a vehicle if they feel the need to.
Sometimes done after a collision to test possible defective parts (brakes, steering etc.) that may have a playing part in the collision.
Things that could have just as easily been caused by the collision you mean?
