They are using the onboard computers to do more and more, and for them to be able to do that, they need more inputs.
Just as a for instance, a lot of cars will intercept the air conditioner compressor on command and will increase the idle speed of the engine before letting the compressor turn on at idle.
At speeds above idle, the compressor comes on immediately.
So, it would make sense for the engine to idle up when you go to put the transmission in gear. With no load on the engine, you can let the engine idle slower to save a little gas.
As for the lockup, not sure what the advantage is. Maybe they actually lock up the converter in park and neutral to remove the load of the converter at idle.