There was a set of mutual social obligations and the teachings of the church
Without the feudal system the people would not have land where to live and could not get any food or shelter or anything since the land belonged to the nobles as decreed by the king. The church also supported this system since it enabled the idea that kings are there by divine right and that you should support them and the church.