Freud’s work wasn’t science or resembling it. It was a mix of observations and thoughts. Biology at the tine was way closer to modern science.
In fact, Karl Popper’s seminal work that characterized science and is essentially used to define science today, was motivated in no small part by trying to formalize Alfred Adler’s claims in a rigorous consistent verifiable and falsifiable manner - and realizing that was impossible.