The term "flying officer" was originally used in the Royal Flying Corps as a flying appointment for junior officers, not a rank.
On 1 April 1918, the newly created RAF adopted its officer rank titles from the British Army, with Royal Naval Air Service sub-lieutenants (entitled flight sub-lieutenants) and Royal Flying Corps lieutenants becoming lieutenants in the RAF.