The byzantine empire was a faint shadow of its former self by the time the Ottomans attacked.

They relied too much on foreign soldiers, who turned against them over time.
It didn't help that the catholic world just let things happen when they had promised aid.