Why family wealth affects learning