The disciples were amazed because in those days, the rabbis taught that the closer one was to God, the richer he would be. Prosperity theology was around even back then. Here, however, Jesus totally shoots that theory down by saying, "Contrary to Jewish theology, riches can actually hinder one entering the kingdom."