Graph Neural Networks are Inherently Good Generalizers: Insights by Bridging GNNs and MLPs