Because nothing is infallible, including preventatives. My dogs have taken HWP the 1st of every month, 12 months a year, year after year, but we still do a heartworm test annually.
I would have her checked out. I have two girlies and two bridge angel girlies and they don't/didn't have anything like you are describing. May be a little infection going on.