1098-T

My wife did a online program. We received a 1098-T with line 5 filled in. We did not receive any grants or scholarships and paid for it all. However, payment was through a third party. Why are we being taxed on that amount?