It seems to me most likely that the speaker had continued to be "resident" in the UK for tax purposes, and effectively had a second home in Spain.
As such, they were claiming welfare benefits in the UK, meanwhile working in Spain, and not declaring their income for tax in either country.