Captain America wasn’t exactly on the sidelines in Avengers: Infinity War, but for a character of his importance, he certainly played a smaller role. According to Infinity War and Endgame writers Christopher Markus and Stephen McFeely, this was done on purpose.