Understanding Scaling Laws in Deep Neural Networks via Feature Learning Dynamics