The advantage of buying your car over leasing is: You will end up owning the car, which may be worth a fair amount of money.
This means that once you pay off your loan, the car is yours, and you can potentially sell it or trade it in later, maintaining its value as an asset.