Why do Rivers have Deltas?

Where rivers meet the ocean, coastlines tend to bend either inward or outward, creating estuaries and deltas. But how do they get those shapes?