Because 'nearby' is an adverb. These are your choices: He lives on a farm nearby. He lives on a farm near the castle.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
father93He lives on a farm nearby to the castleThe combination 'nearby to (something)' is not used in English. Use 'near (something)' instead.