What was the Venus Flytrap used for?

it is used for trapping insectsand it is also used for our environment