Piping plovers have made a remarkable recovery in Massachusetts. But the tiny, threatened shorebird is declining in other states, like Maryland and Virginia. Experts aren’t quite sure why the disparity exists, but they suspect food abundance and habitat play a role. Climate change may alter both.