My question is why not use IMAP?
It actually does use IMAP! The app connects directly to Google's IMAP servers via SSL straight from your machine.
I intentionally chose a local IMAP pipeline over the official Gmail API because of platform gatekeeping. To use the API for this, Google forces independent developers into a "Restricted Scope" tier, which requires an annual $15,000+ third-party security assessment.
Going the local IMAP route lets me bypass that completely while keeping user data 100% local and secure.
That's what they used to do: https://news.ycombinator.com/item?id=48708270
The OP had posted a detailed reply here as well, that they since deleted - I think because they didn't want to deal with all the pushback here.