Removing orphaned dependencies every once in a while is a good idea. If these were installed as dependencies and are not dependencies anymore, this would get rid of them.
https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Removing_unused_packages_(orphans)
Arch Wiki for more general info. Official docs/man pages of whatever thing you are working with for details.