This phrase means that you usually have to give something up - usually money - to get something that you want. For example, if you want a burger, you have to give the restaurant money to get it. There's no such thing as getting something for nothing - you have to give something to get something!