Prince John was collecting the taxes to support King Richards foreign adventuring.
I thought Prince John had no intention of returning any of the wealth he seized to King Richard, but rather he meant to keep all the taxes for himself and his corrupt lackeys.