A rat race is an endless, self-defeating, or pointless pursuit. It conjures up the image of lab rats racing through a maze to get the "cheese" much like society racing to get ahead financially.
The term is commonly associated with an exhausting, repetitive lifestyle that leaves no time for relaxation or enjoyment.