Because it's not changing ownership which is what usually triggers iht.
The other thing is a discretionary trust 10 year charge and while charities are trusts there is no discretion in who benefits. Assets held for the public.