It does not need to be connected at all times. If you set Origin to be in offline mode (or tweak the "In Game" settings), it just needs to be running, not connected. Do the same with the Sims 4 "Other" Settings (the ones that relate to being online and using your information) and that's it.