Well for trump she is the trophy wife and it's all about appearances, for Trump how he is seen in public is more important than what actually happens and reality behind closed doors.
Check out this clip, Melania clearly not happy about being there, can't/wont even attempt a fake smile
negotiated arrangement is quite possible that she stick with him while president