Maybe (and you know how much know about macOS !) your path is set in your bash rc file and that applies when you are running a terminal but you are starting Lazarus directly, not via bash ?
In my case, my shell is tcsh, and the path is set in .cshrc.
However, that's not the end of it, macOS has global (ie all users inherit) paths specified in:
* /etc/paths which contains, among others, /usr/local/bin
* /etc/paths.d (directory) with individual files containing an app-specific path(s)
and of course, individual user paths are set in the login shell dot resource files (like .cshrc).
It used to work and now it doesn't without some finagling...