The name relates to the French charlotte, but Polish szarlotka became its own apple cake.
Borrowed name.