In some countries, but not in America, this is normal - you could win $1 and still whatever your lawyers cost would be added on, to incentivize the defendant to have voluntarily paid the $1 instead of forcing a court to force them to pay the $1.
It works both ways of course, if you lose a suit then you have to repay the defendant for their lawyers.