In fact, I suspect most of the "jobs" left eventually would be around extracting those secrets out of the universe and making them work for humanity. Which is probably a much better use of human intellect than pretty much anything we do today.
That may be the future we want to end up in, but we'll only get there eventually. Unfortunately, in today's world we neither know the secrets of the universe nor can we survive without jobs. So until society reorients itself towards that future, we are going to have a lot of upheaval.
This leaves only one area for humans to expand into: towards the things machines cannot do, which often involve things that neither humans or machines currently understand.
Fortunately, that's basically everything. We know about black holes, but we still don't know enough to figure out FTL travel. We know DNA but we don't know enough to cure cancer, let alone how to reverse aging. We know a negligible fraction of the secrets of the universe, and it would be a much better use of human intellect to figure those out than filling out TPS reports.
Unfortunately, current society is not set up for that future -- essentially where everybody is either a scientist or an artist, both historically terribly-paying jobs requiring a very specific mindset and an appetite for abject uncertainty -- and that's where the upheaval happens.