When setting type, it is important to consider each block of text, or paragraph, carefully. The term “Widows and Orphans” describes text at the end of a paragraph that presents visual problems.
Below, see the two orphans. InDesign has several ways to manipulate surrounding text to avoid these hanging lines.

For more information, check out the links below:
https://www.fonts.com/content/learning/fontology/level-2/text-typography/rags-widows-orphans