In short ... By using a command like / fill to remove water from a particular location, blocks other than just water are not cleaned and remain as water sources. Here is an example:
The error also happens when we give the command:
"/ fill xa ya za xb yb zb air 0"
The seagrass blocks disappear, but the water continues ...