Name any subject or group at all and there will be jokes about it. Humor can be a serious weapon, as kings and politicians have known through the ages, but it does not have to be nasty or cruel or humiliating to someone. Many jokes about groups of people are just funny.
I’m old enough to remember and miss ethnic jokes, including ones about my own ethnicity.. Some were mean, but many were good-humored.
When my mother was in her last days, her pastor stood by with our family in the hospital. She told the first God jokes I’d ever heard.
Lawyer jokes probably came along about as soon as the legal profession did, which would be centuries ago.