Statistical Foundations of Prior-Data Fitted Networks