Working out is another way of saying exercising. Something working out also means it works or happens successfully, but in this case, the person who wanted to exercise didn't work it out successfully. 
I wanted to exercise last night but it just didn ' t work out .