Glow-squids and normal Squids tend to kill themselves by going onto a block above sea level. They always do this, and you can try this by yourself by making a pool of water, adding squids and just wait and see. Considering that this bug/issue has been happening ever since the squids were added I am probably not the first one to report this.
By the way, this affects the latest version PLUS the snapshots, and even the other versions too.
I realised that this is a duplicate of https://bugs.mojang.com/browse/MC-132473
Linked issues
Comments

Resolved as a dupe of MC-132473 🙂
whoops. There are a lot of duplicates, including mine. I just wish Mojang can take care of this issue. If you're reading this Mojang, Good luck!
⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit