The executive departments and the executive office of the president (eop) are different because the heads of executive departments need to be approved by Congress, while the heads of the EOP do not.
The 4,000 positions in the Executive Office of the President, that President Franklin D. Roosevelt created in 1939, do not require confirmation from Congress; meanwhile, The president, with confirmation of the United States Senate, appoints the 15 executive deparments.