I needed to remote control a program (and read it’s output) while that tool should still be fully interactive for the user. Obviously there are things like tmux and more but they emulate an entire terminal.
This is simpler in that it just sets up a pty and basic pipes or files to send stuff in and read from it.