Why Does It Take Longer To Transfer From One Bank To Another Bank Than Within The Same Bank?

Why is it that when I need to move money within my bank it is instant, but it takes much longer when I need to transfer money to another bank? What causes this delay? I help explain this in layman’s terms.