This is very common. Depending on the case the body may have been swept up by the flow and then pulled against the filter intake, or the fish could have been weakened and unable to swim away, and then passed away.
Sometimes fish get stuck in/between stuff and are unable to get out by themselves.
Was it acting different before? Did you notice anything off about that fish? Were there any marks or body parts missing?