Work and energy transform into one another. They are measured in the same units. So a "Joule" is also a unit for measuring energy.