Developing higher cognition through predictive processing