I guess a more modern example you might run into is something like Rust’s no_std environment; which strips out the standard library of the language that doesn’t work on every device the language is designed to target (namely microcontrollers that don’t even have an operating system on them). Or like, maybe you’re writing your own operating system.
Apple doesn’t provide this feature because it would be used for pirating movies. BUT, you can buy a device that sits in between your TV and your AppleTV to do just that. It’s called HDMI Capture.