First of all: https://apple.stackexchange.com/questions/388622/zsh-zprofile-zshrc-zlogin-what-goes-where.
Notwithstanding that article, using ZSH on macOS doesn't automatically create or populate a .zprofile file, so you must have either had a .bash_profile at one point or created a .zprofile...
Something in .zprofile references /opt/homebrew/bin/brew and the fact you uninstalled Homebrew means that when the line in .zprofile is run on starting a login shell, the line fails for obvious reasons.
Something similar is happening with .zshrc - although since you redacted the command itself, I can't provide any further insights.
In any case, you need to go into the Terminal, and edit those two files - at lines 2 & 4 and lines 1 & 10 respectivley, to fix whatever is wrong with them. The built-in command line editors include vim, nano and pico.
BTW, the "cat" command simply copies the contents of the input somewhere (it's short for "concatenate") - usually from a file to the standard output in Terminal.
cat /User/<your profile name>/.zprofile
will dump the contents of .zprofile to your screen so you can read them and see what's wrong before trying to edit it with
vim /User/<your profile name>/.zprofile
I recommend glancing at some online help for vim (or whatever) before trying to use it, since some of the controls are not intuitive.