When we discussed it they said it was necessary so they could verify if I had lied about my salary when I'd given it previously. I pointed out that I had never given this information. HR insisted that I must have since they require it. Round and round we went for a while.
Eventually they let it go and hired me anyway.
So to answer your question. Companies will typically call up your previous employer and ask if the salary you provided them is correct.
Lying on your application form is almost always cause to fire. So if they ever find out you lied you about your previous salary you can be fired on the spot.