These two things seem to be closely knitted together, sometimes contradictory and can be found especially in a professional setting. For example when a group of people work in a project, They have responsibilities - targets to achieve, deadlines to finish, works to do. They have roles to play.
Thus, it seems like a normal occurrence for the members to have expectations towards each other. It's a team work. The team cannot finish the project if the members don't do their jobs properly.
From the point of view of Buddhism, how does one should see/deal with this? In a teamwork, if you don't expect people to do their responsibilities and be content, the team might stall and it would impact everyone negatively. But if you expect, you are becoming attached to the person, wanting something from him/her.