Although the PS5 and Xbox Series X can't run games off external drives, transferring the games between the two is fast and efficient. The internal SSDs in the Xbox Series X and PS5 can only stretch so far.
That's why you want to have the best external hard drive to store them. Not physical space, but storage space: Games are bigger than ever. Gaming can be an expensive hobby that takes up a lot of time and space.