It is a very popular cartridge so it makes sense that you will find .40s in the secondary market. Perhaps they sold one to finance another .40 they like better or dropped a gun if they had multiples chambered in .40.
It's hard to tell but I don't believe it is a sign that the . 40 is going extinct.
"He who laughs last, laughs dead." Homer Simpson