First, there is no 'why' to evolutionary results. Natural selection is the result of a lot of random events. Example: a massive flood wipes out a small population of insects that have other wonderful adaptations. They are gone forever. Whatever those bugs were adapted for, surviving floods was not among the traits. The Earth has had major and minor catastrophes and long/short term climate changes that all have driven natural selection.
Second, carnivorus plants are rare and usually with limited population size a dn distribution, often under unfavorable conditions where there is almost no nitrogen in the soil. Swampy areas, for example. Example: Venus flytrap (Dionaea spp.). The amount of nitrogen they get from insect protein makes up the difference between just barely eking out a living and surviving well enough to assure greater reproductive success. And the amount of insects they capture is small, so they exert very little selection pressure on insects to avoid them. It takes about 10 days for a leaf trap to digest one bug. The bugs have many and much bigger problems. And insects pollinate the flowers, ironically.
First, there is no 'why' to evolutionary results. Natural selection is the result of a lot of random events. Example: a massive flood wipes out a small population of insects that have other wonderful adaptations. They are gone forever. Whatever those bugs were adapted for, surviving floods was not among the traits. The Earth has had major and minor catastrophes and long/short term climate changes that all have driven natural selection.
https://en.wikipedia.org/wiki/Venus_flytrapThere is no why answer to alfalfa's "lifestyle", versus the Venus flytrap way of doing things. Except to say that somewhere, sometime thing allowed those methods of getting extra nitrogen to get a small foothold. And they persisted and flourished because they could do better than their less adapted cousins.