2 things either something is creating a short and draining the batteries beyhond recovery. or second you are over using them past the point they are meant to be used, with a mech there is no cut off so although it may give a weak vape it will still try and draw the required power.
I say this as both batteries have gone dead after using them in the mech try a different set of batteries or another battery in the charger but don't use it in your mech use it in a regulated mod. It will then answer wether its the charger or the mech thats the problem