Some [redirect] pages in Wikipedia have a "ghost" connection with Wikidata items, seen only from history of page (&action=history). When you check item you see there is no sitelink to them.
Examples.
- access https://ro.wikipedia.org/w/index.php?title=Ustilago_nigra&action=history and see in left sidebar for Wikidata item (= Q5432714). This page is redirect to Tăciunele zburător negru al orzului that is connected in >WD:Q5432714 (False loose smut)
- https://ro.wikipedia.org/w/index.php?title=Phragmites_australis&action=history in left you can see connection to Wikidata item (= Q28557). But this page is a redirect to https://ro.wikipedia.org/wiki/Stuf and only redirect target is connected in https://www.wikidata.org/wiki/Q28557
I encountered this bug through a Quarry query, and previous also noticed similar cases. Probably page_props table (WHERE pp_propname = wikibase_item) is/was not updated always