The advantage of having Undo and Redo on the Quick Access Toolbar is that there they're always available, even if Word has switched you to another ribbon such as Table Layout or Shape Format. If you really must have them on the Home ribbon, though, there is a way.
Word will refuse to add any commands to a built-in group on any ribbon if they aren't already defined as part of that group. The solution is to add a custom group, and then add the commands to that group.
Go to File > Options > Customize Ribbon. In the list on the right side, click on Home. At the bottom of the list, click the New Group button. Use the up and down arrows in the right margin to move the new group to the position you want, and use the Rename button to change the name of the new group. Finally, while the new group is selected, click the Undo command in the list on the left side and click the Add button. Repeat for the Redo command.
