It seems that egui/eframe writes its app.ron for persisting app state into that folder, instead of where Maxima consciously places all of its other files.
It seems it's dictated by this:
/// ### eframe
/// On eframe, the `app_id` of the root window is also used to determine
/// the storage location of persistence files.
#[inline]
pub fn with_app_id(mut self, app_id: impl Into<String>) -> Self {
self.app_id = Some(app_id.into());
self
}
Not a big deal, but could be tackled at some point to reduce the mess left on the system (but it sounds like it might not necessarily be configurable currently, since I didn't find anything with a quick search, which'd be annoying).
If they want to make it non-configurable, then it's arguably an upstream bug to put it in ~/.local/share instead of ~/.local/state where Qt puts its automatically-generated UI state files for example.