That's a possible secondary use, but not really what the command is for.
Why not just use /dev/zero or /dev/urandom for generating load?
yes will repeat arbitrary data (including binary).
Because the yes command will repeat whatever string you give it. If you need to parse the incoming load in a certain way, /dev/{zero,urandom} won't be suitable.