Most attorneys have no idea that there are people who cannot afford their services. Uncontested cases provide a great source of easy money for attorneys. Therefore, they don't like it when people successfully handle their own cases. A third point to bear in mind is that the judge, in nearly all instances, used to be a practicing attorney. That is understandable since the attorney has professional training and does this for a living, and you do not.
Most judges are fair and do the job that they are paid to do in an impartial manner.
In other words, they are looking out for the interest of lawyers. This type of judge is probably trying to intimidate you into hiring a lawyer. If you encounter a rude or hostile judge, you have some options. A court reporter is always present in Court, and you should be able to obtain a transcript of your hearing for a complaint to the Judiciary Committee. A judge has to answer every complaint.