NFL Contract questions?

In the NFL, how can a player be traded or released before there contract is dead? Like for example, a player gets signed for 6 years but gets traded or released before the 6 years is up. Doesen't that defeat the purpose of a contract? How is that allowed?
4 answers 4