The energy transformations are similar because they both involve transformations that

begin with chemical energy.
begin with electrical energy.
result in radiant energy.
result in mechanical energy.