When you buy, you pay for the entire cost of a vehicle regardless of how many miles you drive it.
When you lease, you pay for only a portion of the vehicle's cost, which is the part that you "use up" during the time you're driving it.
Each has its own advantages & disadvantages.