This question already has an answer here:
If I want to send you 75 and I have 100, a transaction of 100 will be made, in which I get 25 back as change. Why is this?
See also Change
When the output of a transaction is used as the input of another transaction, it must be spent in its entirety