To answer your later questions first:
Isn't it good for the car that its bumper dissipates some energy in
collision so that the time of impact increases, therefore reducing
impact force?
Yes, it is good, for the reasons you describe. Your misconception, however, seems to be that a "rigid" bumper would not do these things. The bumper, and indeed much of the car bodywork constitutes a "Crumple Zone", which is designed to exhibit exactly the behaviour you describe, by increasing the impact time, and reducing the consequent peak force.
To answer your first question:
If spring shock-absorbers like the one below absorbs shock from road
imperfections, reducing strain in the motorcycle body as your drive,
then why does car manufacturers use rigid bumper for cars instead of
semi-rigid or flexible bumpers?
The key difference between using a spring to reduce the impact force vs using a crumple zone, is that the spring returns that force. In a big crash, you really don't want to be bouncing backwards. Bumpers are optimised for safety in an emergency, rather than day-to-day driving into things, as it were.