to take advantage of (something) is a fixed idiom. ) It means "to profit from (something)" -- not necessarily financially -- or "to make use of an opportunity to do (something) which results in some benefit for oneself". We take advantage of a sale to buy things at a lower price, for example.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.