An oversimplified version:

If you raise with a better hand, you're raising to get value from worse hands.

If you raise with a worse hand, you're raising to get fold equity from better hands.