In English it is possible for a to-infinitive to function as a noun, meaning the act of doing that verb. So, the meaning is approximately the same as "Living is the rarest thing in the world" (there may be subtle differences in nuance).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.